:root {
  --auth-ink: #0d1529;
  --auth-ink-soft: #13213f;
  --auth-accent: #4099b2;
  --auth-accent-strong: #2f7f9b;
  --auth-paper: #ffffff;
  --auth-muted: rgba(13, 21, 41, 0.66);
  --auth-border: rgba(13, 21, 41, 0.16);
  --auth-danger: #b42318;
  --auth-font-title: "Sora", "Roboto", system-ui, sans-serif;
  --auth-font-body: "Manrope", "Roboto", system-ui, sans-serif;
}

.auth-v2-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 620px at -8% -12%, rgba(64, 153, 178, 0.34), transparent 66%),
    radial-gradient(860px 540px at 112% 114%, rgba(13, 21, 41, 0.24), transparent 70%),
    linear-gradient(155deg, #edf3f9 0%, #f9fbfd 52%, #eff4fa 100%);
}

.auth-v2-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.44), transparent 38%),
    repeating-linear-gradient(
      -45deg,
      rgba(13, 21, 41, 0.02) 0,
      rgba(13, 21, 41, 0.02) 2px,
      transparent 2px,
      transparent 14px
    );
  pointer-events: none;
}

.auth-v2-wrap {
  max-width: 1160px;
  position: relative;
  z-index: 1;
}

.auth-v2-alert .alert {
  border: 1px solid rgba(13, 21, 41, 0.18);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(13, 21, 41, 0.1);
}

.auth-v2-stage {
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  border: 1px solid rgba(13, 21, 41, 0.16);
  box-shadow: 0 24px 70px rgba(13, 21, 41, 0.18);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-v2-showcase {
  position: relative;
  padding: clamp(28px, 4.4vw, 56px);
  background:
    radial-gradient(520px 300px at 15% 18%, rgba(64, 153, 178, 0.3), transparent 68%),
    radial-gradient(440px 260px at 88% 88%, rgba(255, 255, 255, 0.12), transparent 72%),
    linear-gradient(146deg, #0a1630 0%, #0c2242 52%, #123d5f 100%);
  color: #e8f6ff;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-v2-showcase::before,
.auth-v2-showcase::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.auth-v2-showcase::before {
  width: 320px;
  height: 320px;
  right: -140px;
  top: -140px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.auth-v2-showcase::after {
  width: 240px;
  height: 240px;
  left: -120px;
  bottom: -100px;
  background: radial-gradient(circle, rgba(64, 153, 178, 0.3) 0%, transparent 72%);
}

.auth-v2-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.auth-v2-logo-wrap {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auth-v2-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1.35);
  transform-origin: center;
  filter: saturate(1.12) contrast(1.05);
}

.auth-v2-brand-name {
  font-family: var(--auth-font-title);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: #f6fbff;
}

.auth-v2-brand-sub {
  font-family: var(--auth-font-body);
  font-size: 0.88rem;
  color: rgba(236, 247, 255, 0.8);
  letter-spacing: 0.01em;
}

.auth-v2-headline {
  margin: 6px 0 0;
  font-family: var(--auth-font-title);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 18ch;
  position: relative;
  z-index: 1;
}

.auth-v2-copy {
  margin: 0;
  font-family: var(--auth-font-body);
  font-size: 1rem;
  line-height: 1.56;
  color: rgba(233, 246, 255, 0.86);
  max-width: 52ch;
  position: relative;
  z-index: 1;
}

.auth-v2-points {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.auth-v2-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(234, 248, 255, 0.9);
  font-family: var(--auth-font-body);
  font-size: 0.94rem;
  line-height: 1.4;
}

.auth-v2-points i {
  margin-top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #daf3ff;
  font-size: 0.8rem;
  flex: 0 0 auto;
}

.auth-v2-metrics {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  z-index: 1;
}

.auth-v2-metric {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.metric-k {
  font-family: var(--auth-font-body);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(234, 248, 255, 0.68);
}

.metric-v {
  font-family: var(--auth-font-title);
  font-size: 0.92rem;
  color: #ffffff;
}

.auth-v2-panel {
  background: var(--auth-paper);
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
}

.auth-v2-panel-header {
  margin-bottom: 14px;
}

.auth-v2-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(64, 153, 178, 0.3);
  background: rgba(64, 153, 178, 0.1);
  color: #266f88;
  font-family: var(--auth-font-body);
  font-size: 0.74rem;
  padding: 5px 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.auth-v2-title {
  margin: 14px 0 6px;
  font-family: var(--auth-font-title);
  color: var(--auth-ink);
  font-size: clamp(1.48rem, 2.2vw, 1.94rem);
  letter-spacing: -0.02em;
}

.auth-v2-copy-muted {
  margin: 0;
  font-family: var(--auth-font-body);
  color: var(--auth-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

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

.auth-v2-field .form-label {
  margin-bottom: 6px;
  color: var(--auth-ink-soft);
  font-family: var(--auth-font-body);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.auth-v2-input {
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--auth-border);
  font-family: var(--auth-font-body);
  color: var(--auth-ink);
  box-shadow: none;
}

.auth-v2-input:focus {
  border-color: rgba(64, 153, 178, 0.64);
  box-shadow: 0 0 0 4px rgba(64, 153, 178, 0.15);
}

.auth-v2-password-wrap .auth-v2-input {
  border-right: 0;
}

.auth-v2-toggle {
  border: 1px solid var(--auth-border);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  color: rgba(13, 21, 41, 0.66);
  background: #fff;
  width: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-v2-toggle:hover {
  background: rgba(64, 153, 178, 0.08);
  color: var(--auth-ink);
}

.auth-v2-toggle:focus {
  box-shadow: inset 0 0 0 1px rgba(64, 153, 178, 0.5);
}

.auth-v2-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.auth-v2-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(13, 21, 41, 0.64);
  font-family: var(--auth-font-body);
  font-size: 0.84rem;
}

.auth-v2-note i {
  color: var(--auth-accent-strong);
}

.auth-v2-link {
  color: #1f6f8c;
  text-decoration: none;
  font-family: var(--auth-font-body);
  font-weight: 700;
  font-size: 0.86rem;
}

.auth-v2-link:hover {
  color: #18556b;
  text-decoration: underline;
}

.auth-v2-submit {
  margin-top: 2px;
  height: 50px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(120deg, #0d1f3e 0%, #12355d 56%, #2d7d98 100%);
  color: #f8fdff;
  font-family: var(--auth-font-title);
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 30px rgba(13, 34, 66, 0.32);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-v2-submit:hover {
  color: #ffffff;
  transform: translateY(-1px);
  filter: saturate(1.07);
  box-shadow: 0 16px 34px rgba(13, 34, 66, 0.36);
}

.auth-v2-submit:focus {
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(64, 153, 178, 0.25), 0 16px 34px rgba(13, 34, 66, 0.36);
}

.auth-v2-footnote {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(13, 21, 41, 0.18);
  color: rgba(13, 21, 41, 0.64);
  font-family: var(--auth-font-body);
  font-size: 0.86rem;
  line-height: 1.45;
}

.auth-v2-panel .alert {
  border-radius: 12px;
  border: 1px solid rgba(180, 35, 24, 0.22);
}

.auth-v2-panel .invalid-feedback {
  font-family: var(--auth-font-body);
  font-size: 0.8rem;
}

.reveal-up {
  opacity: 0;
  transform: translateY(16px);
  animation: authFadeUp 0.62s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.delay-1 {
  animation-delay: 0.12s;
}

@keyframes authFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .auth-v2-stage {
    grid-template-columns: 1fr;
  }

  .auth-v2-panel {
    order: 1;
  }

  .auth-v2-showcase {
    order: 2;
    min-height: 0;
  }

  .auth-v2-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .auth-v2-stage {
    border-radius: 22px;
  }

  .auth-v2-brand-row {
    gap: 12px;
  }

  .auth-v2-logo-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .auth-v2-headline {
    font-size: 1.45rem;
  }

  .auth-v2-copy {
    font-size: 0.93rem;
  }

  .auth-v2-metrics {
    grid-template-columns: 1fr;
  }

  .auth-v2-inline {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .auth-v2-submit {
    transition: none;
  }
}
