:root {
  --deep: #17254e;
  --deep-2: #0f1a38;
  --mint: #bc2026;
  --mint-soft: #f5d0d2;
  --ink: #081840;
  --muted: #5c6478;
  --line: rgba(23, 37, 78, 0.14);
  --white: #ffffff;
  --radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: #0c1638;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(188, 32, 38, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(255, 255, 255, 0.08), transparent 50%),
    linear-gradient(145deg, #0c1638 0%, #17254e 45%, #1a2d5c 100%);
}

.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 460px);
  gap: clamp(24px, 4vw, 48px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 32px);
  align-items: center;
}

.hero {
  color: var(--white);
  padding-right: clamp(0px, 2vw, 24px);
}

.hero-copy {
  margin-top: clamp(8px, 2vw, 16px);
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--mint-soft);
}

.hero-copy h1 {
  margin: 16px 0 14px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  max-width: 14ch;
}

.hero-copy p {
  margin: 0;
  max-width: 42ch;
  line-height: 1.65;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.stat {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.stat strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}

.role-cards {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.role-cards li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(8, 24, 64, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s, border-color 0.2s;
}

.role-cards li:hover {
  transform: translateX(4px);
  border-color: rgba(188, 32, 38, 0.45);
}

.role-icon {
  color: var(--mint);
  font-size: 0.65rem;
  margin-top: 6px;
}

.role-cards strong {
  display: block;
  font-size: 0.92rem;
}

.role-cards p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
}

.hero-foot {
  margin: 28px 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.auth {
  display: flex;
  justify-content: center;
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.auth-logo img {
  display: block;
  height: 56px;
  width: auto;
  padding: 8px 14px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(8, 24, 64, 0.12);
  border: 1px solid var(--line);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 28px);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  backdrop-filter: blur(16px);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  background: #eef0f6;
  border-radius: 14px;
  margin-bottom: 22px;
}

.auth-tab {
  border: 0;
  padding: 11px 12px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.auth-tab.is-active {
  background: var(--white);
  color: var(--deep);
  box-shadow: 0 4px 14px rgba(8, 24, 64, 0.1);
}

.auth-panel h2 {
  margin: 0 0 6px;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.55rem;
  color: var(--deep);
}

.auth-sub {
  margin: 0 0 20px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.auth-panel {
  display: none;
  animation: fadeUp 0.35s ease;
}

.auth-panel.is-active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--deep);
  letter-spacing: 0.02em;
}

.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font: inherit;
  color: var(--ink);
  background: #fafbfd;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(188, 32, 38, 0.5);
  box-shadow: 0 0 0 3px rgba(188, 32, 38, 0.12);
  background: var(--white);
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.link-muted {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mint);
  text-decoration: none;
}

.link-muted:hover {
  text-decoration: underline;
}

.btn-primary {
  margin-top: 4px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint) 0%, #9a1820 100%);
  color: var(--white);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(188, 32, 38, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(188, 32, 38, 0.42);
}

.btn-primary:active {
  transform: translateY(0);
}

.toast {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(23, 37, 78, 0.06), rgba(188, 32, 38, 0.08));
  border: 1px solid var(--line);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.toast strong {
  display: block;
  color: var(--deep);
  margin-bottom: 4px;
}

.toast a {
  color: var(--mint);
  font-weight: 700;
}

.auth-help {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.auth-help a {
  color: var(--deep);
  font-weight: 700;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .hero {
    text-align: center;
    padding-right: 0;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .role-cards {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-foot {
    text-align: center;
  }
}

@media (max-width: 420px) {
  .auth-card {
    padding: 18px;
  }
}
