* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #0b1220;
  color: #0f172a;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/images/backgrounds/reg-bg.jpg') center / cover no-repeat;
  filter: saturate(1.05) contrast(1.05);
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(900px 520px at 20% 15%, rgba(59, 130, 246, 0.14), transparent 60%),
    radial-gradient(900px 520px at 80% 10%, rgba(20, 184, 166, 0.10), transparent 62%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.84), rgba(11, 18, 32, 0.94));
  z-index: -1;
}

.shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 20px;
}

.reg-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.reg-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reg-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 4px;
  border: 1px solid #e2e8f0;
}

.reg-head h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.3px;
}

.reg-head p {
  margin: 10px 0 0;
  color: #475569;
}

.reg-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-decoration: none;
  color: #0f172a;
  white-space: nowrap;
}

.reg-home:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.reg-hero {
  margin-top: 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.10), rgba(20, 184, 166, 0.08));
  display: grid;
  place-items: center;
  padding: 0 12px;
}

.reg-hero-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0;
}

.reg-hero-logo {
  display: block;
  width: 240px;
  height: 240px;
  border-radius: 18px;
  object-fit: contain;
  background: #fff;
  padding: 10px;
  border: 1px solid #e2e8f0;
}

.reg-thumbs {
  display: none;
}

.reg-thumbs img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  margin-top: 16px;
}

.tab {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
}

.tab.active {
  border-color: #3b82f6;
}

.row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.row + .row {
  margin-top: 14px;
}

.row > * {
  min-width: 0;
}

.row.single {
  grid-template-columns: 1fr;
}

@media (max-width: 900px) {
  .reg-thumbs img {
    height: 120px;
  }
}

@media (max-width: 720px) {
  .reg-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .row {
    grid-template-columns: 1fr;
  }
  .reg-thumbs {
    grid-template-columns: 1fr;
  }
  .reg-thumbs img {
    height: 180px;
  }
}

label {
  display: block;
  font-size: 12px;
  color: #334155;
  margin-bottom: 6px;
}

input,
select {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
}

button {
  padding: 10px 12px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
}

.primary[type='submit'] {
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 800;
}

.form-actions {
  margin-top: 16px;
  padding-top: 10px;
}

.primary {
  background: #3b82f6;
  color: #fff;
}

.msg {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  display: none;
}

.msg.ok {
  background: #dcfce7;
  color: #166534;
}

.msg.err {
  background: #fee2e2;
  color: #991b1b;
}
