/* Sophyra authentication experience v2 — homologation */
:root {
  --auth-navy-950: #020d1f;
  --auth-navy-900: #04162f;
  --auth-navy-800: #072a5b;
  --auth-blue-500: #238cff;
  --auth-blue-400: #49aaff;
  --auth-blue-300: #7bc6ff;
  --auth-ice-50: #f8fbff;
  --auth-ice-100: #edf5ff;
}

.auth-page {
  grid-template-rows: minmax(0, 1fr) 48px;
  min-height: 100svh;
  background: var(--auth-navy-950);
}

.auth-stage {
  grid-template-columns: 55% 45%;
  isolation: isolate;
}

.auth-visual,
.auth-access {
  min-height: calc(100svh - 48px);
}

.auth-visual {
  padding: clamp(38px, 4vw, 58px) clamp(44px, 4.7vw, 76px) 52px;
  background:
    radial-gradient(circle at 28% 33%, rgba(35,140,255,.22), transparent 23%),
    radial-gradient(circle at 62% 64%, rgba(29,126,255,.13), transparent 28%),
    radial-gradient(ellipse at 30% 100%, rgba(0,166,255,.18), transparent 29%),
    linear-gradient(148deg, #020d20 0%, #041a3d 43%, #062a63 72%, #031b46 100%);
}

.auth-visual::before {
  inset: auto -16% -45% -20%;
  height: 78%;
  background:
    repeating-linear-gradient(74deg, rgba(82,177,255,.15) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(8deg, rgba(72,159,255,.12) 0 1px, transparent 1px 50px),
    radial-gradient(ellipse at center, rgba(17,111,255,.34), rgba(5,29,72,.06) 54%, transparent 72%);
  opacity: .78;
  filter: drop-shadow(0 -12px 28px rgba(22,123,255,.12));
}

.auth-visual::after {
  right: -28%;
  top: -12%;
  width: 101%;
  height: 128%;
  border-right: 2px solid rgba(91,179,255,.9);
  border-radius: 50%;
  box-shadow:
    22px 0 30px rgba(45,145,255,.22),
    54px 0 80px rgba(36,126,255,.16),
    inset -18px 0 34px rgba(47,151,255,.13);
}

.auth-orbit-one {
  width: clamp(500px, 38vw, 680px);
  height: clamp(500px, 38vw, 680px);
  right: 4%;
  top: 8%;
  border-color: rgba(69,163,255,.34);
}

.auth-orbit-two {
  width: clamp(650px, 49vw, 860px);
  height: clamp(650px, 49vw, 860px);
  right: -10%;
  top: -5%;
  border-color: rgba(60,146,255,.22);
}

.auth-stars {
  opacity: .9;
  filter: drop-shadow(0 0 5px rgba(76,176,255,.5));
}

.auth-network {
  height: 205px;
  opacity: .96;
  filter: drop-shadow(0 0 8px rgba(55,155,255,.18));
}

.auth-brandbar {
  display: flex;
  align-items: center;
  min-height: 84px;
}

.auth-brand-logo {
  width: min(455px, 68%);
  max-height: 104px;
  object-fit: contain;
  object-position: left center;
  filter: none;
  opacity: 1;
  transform: translateX(-7px);
}

.auth-visual-copy {
  width: min(625px, 88%);
  margin: auto 0;
  padding: 16px 0 20px;
}

.auth-kicker {
  margin-bottom: 24px;
  color: #55b7ff;
  font-size: 11px;
  letter-spacing: 1.65px;
}

.auth-kicker::before {
  width: 33px;
  background: linear-gradient(90deg, #6cc7ff, #2a8fff);
  box-shadow: 0 0 10px rgba(68,170,255,.35);
}

.auth-visual h1 {
  gap: 2px;
  max-width: 610px;
  font-size: clamp(46px, 4.25vw, 72px);
  font-weight: 760;
  line-height: .98;
  letter-spacing: -2.8px;
  text-wrap: balance;
}

.auth-visual h1 strong {
  color: #55adff;
  text-shadow: 0 0 26px rgba(38,138,255,.16);
}

.auth-copy-line {
  width: 58px;
  margin: 27px 0 20px;
  background: linear-gradient(90deg, #2d9cff, #c2ebff);
  box-shadow: 0 0 14px rgba(58,170,255,.58);
}

.auth-visual-copy p {
  width: min(440px, 94%);
  color: rgba(232,243,255,.84);
  font-size: 14px;
  line-height: 1.52;
}

.auth-access {
  padding: 34px 50px 34px 34px;
  overflow: visible;
  background:
    radial-gradient(circle at 80% 16%, rgba(124,177,255,.22), transparent 30%),
    radial-gradient(circle at 25% 90%, rgba(179,211,255,.2), transparent 32%),
    linear-gradient(135deg, #f7fbff 0%, #f3f8ff 48%, #e6f0ff 100%);
}

.auth-access::before {
  left: -176px;
  top: -13%;
  width: 320px;
  height: 128%;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(246,250,255,.91), #f8fbff 54%, #f1f7ff 100%);
  box-shadow:
    -14px 0 38px rgba(65,145,255,.13),
    -2px 0 0 rgba(116,190,255,.58);
}

.auth-access-glow {
  inset: 5% 4% auto auto;
  width: 68%;
  height: 88%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.98), rgba(220,235,255,.34) 54%, transparent 76%);
  filter: blur(16px);
}

.auth-access-inner {
  width: min(100%, 548px);
  padding: 42px 42px 36px;
  border: 1px solid rgba(255,255,255,.94);
  border-radius: 30px;
  background: linear-gradient(148deg, rgba(255,255,255,.87), rgba(248,251,255,.68));
  box-shadow:
    0 30px 70px rgba(41,78,129,.16),
    0 8px 24px rgba(39,92,164,.08),
    inset 0 1px 0 rgba(255,255,255,.98);
  backdrop-filter: blur(22px) saturate(1.08);
}

.auth-access-label {
  gap: 11px;
  margin-bottom: 18px;
  color: #0879ff;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 1.2px;
}

.auth-shield {
  width: 38px;
  height: 38px;
  background: linear-gradient(145deg, #e6f1ff, #f7fbff);
  color: #107dff;
  box-shadow: inset 0 0 0 1px rgba(66,142,255,.08);
}

.auth-access h2 {
  color: #061a3a;
  font-size: clamp(32px, 2.65vw, 44px);
  font-weight: 800;
  letter-spacing: -1.9px;
}

.auth-access-header {
  margin-bottom: 29px;
}

.auth-access-header p {
  margin-top: 13px;
  color: #617294;
  font-size: 13.5px;
  line-height: 1.5;
}

.auth-form {
  gap: 18px;
}

.auth-field {
  gap: 8px;
}

.auth-field label {
  color: #061a3a;
  font-size: 11.5px;
  font-weight: 780;
}

.auth-input-wrap input {
  min-height: 58px;
  border-color: #c7d7ec;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 1px 2px rgba(13,37,68,.03);
}

.auth-input-wrap input:hover {
  border-color: #9fbee4;
}

.auth-input-wrap input:focus {
  border-color: #3190ff;
  box-shadow:
    0 0 0 4px rgba(22,126,255,.09),
    0 7px 18px rgba(26,105,207,.07);
}

.auth-input-wrap:focus-within .auth-input-icon {
  color: #187fff;
}

.auth-input-icon,
.auth-password-toggle {
  color: #6689bb;
}

.auth-options {
  margin-top: 1px;
}

.auth-remember {
  color: #465e82;
}

.auth-recovery {
  color: #0679ff;
}

.auth-submit {
  min-height: 59px;
  margin-top: 3px;
  border-radius: 14px;
  background: linear-gradient(180deg, #39a1ff 0%, #0870f5 56%, #075fd4 100%);
  box-shadow:
    0 13px 28px rgba(5,107,236,.27),
    inset 0 1px 0 rgba(255,255,255,.36),
    inset 0 -1px 0 rgba(0,43,121,.2);
  font-size: 14px;
  font-weight: 790;
}

.auth-submit:hover {
  filter: brightness(1.045) saturate(1.05);
  transform: translateY(-1px);
  box-shadow:
    0 16px 34px rgba(5,107,236,.32),
    0 0 0 1px rgba(100,188,255,.16),
    inset 0 1px 0 rgba(255,255,255,.36);
}

.auth-submit:focus-visible,
.auth-password-toggle:focus-visible,
.auth-recovery:focus-visible,
.auth-remember input:focus-visible {
  outline: 3px solid rgba(33,137,255,.3);
  outline-offset: 3px;
}

.auth-security-note {
  margin-top: 23px;
  padding: 14px 16px;
  border: 1px solid rgba(89,151,235,.06);
  background: linear-gradient(145deg, rgba(225,238,255,.92), rgba(241,247,255,.82));
  color: #455d81;
}

.auth-security-icon {
  color: #0b78ff;
}

.auth-bottom-bar {
  min-height: 48px;
  background: linear-gradient(90deg, #031127 0%, #082854 58%, #153f80 100%);
  color: rgba(220,235,255,.7);
  box-shadow: inset 0 1px 0 rgba(87,165,255,.18);
}

.auth-footer-shield {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  color: #a3c9f7;
}

.auth-footer-shield svg {
  width: 15px;
  height: 15px;
}

@media (prefers-reduced-motion: no-preference) {
  .auth-visual::after {
    animation: sophyra-edge-breathe 7s ease-in-out infinite;
  }

  .auth-orbit-one {
    animation: sophyra-orbit-drift 13s ease-in-out infinite alternate;
  }

  .auth-stars {
    animation: sophyra-stars-breathe 6s ease-in-out infinite;
  }

  .auth-access-inner {
    animation: sophyra-card-in .55s cubic-bezier(.2,.72,.25,1) both;
  }

  .auth-submit {
    transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
  }
}

@keyframes sophyra-card-in {
  from { opacity: 0; transform: translateY(10px) scale(.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sophyra-edge-breathe {
  0%, 100% { opacity: .78; filter: brightness(.96); }
  50% { opacity: 1; filter: brightness(1.09); }
}

@keyframes sophyra-orbit-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-10px, 8px, 0); }
}

@keyframes sophyra-stars-breathe {
  0%, 100% { opacity: .68; }
  50% { opacity: .98; }
}

@media (max-width: 1280px) {
  .auth-stage {
    grid-template-columns: 53% 47%;
  }

  .auth-visual {
    padding-inline: 44px;
  }

  .auth-brand-logo {
    width: min(410px, 76%);
  }

  .auth-access {
    padding: 30px 34px 30px 26px;
  }

  .auth-access-inner {
    padding: 36px 34px 32px;
  }
}

@media (max-width: 900px) {
  .auth-page {
    min-height: 100svh;
    background: #f3f8ff;
  }

  .auth-visual {
    min-height: 410px;
    padding: 28px 26px 54px;
  }

  .auth-brandbar {
    min-height: 62px;
  }

  .auth-brand-logo {
    width: min(390px, 78%);
    max-height: 82px;
  }

  .auth-visual-copy {
    width: min(580px, 100%);
    margin-top: 56px;
  }

  .auth-visual::after {
    right: -51%;
    width: 130%;
  }

  .auth-access {
    padding: 0 22px 38px;
  }

  .auth-access::before,
  .auth-access-glow {
    display: none;
  }

  .auth-access-inner {
    width: min(100%, 620px);
    margin-top: -42px;
    border-radius: 26px;
  }
}

@media (max-width: 520px) {
  .auth-visual {
    min-height: 350px;
    padding: 22px 18px 42px;
  }

  .auth-brand-logo {
    width: 92%;
    transform: translateX(-4px);
  }

  .auth-visual-copy {
    margin-top: 46px;
  }

  .auth-visual h1 {
    font-size: clamp(34px, 11.3vw, 48px);
    letter-spacing: -1.8px;
  }

  .auth-access {
    padding-inline: 14px;
  }

  .auth-access-inner {
    margin-top: -30px;
    padding: 28px 20px 24px;
    border-radius: 22px;
  }

  .auth-access-label {
    letter-spacing: .75px;
  }
}
