
/* ── Auth design tokens ── */
.auth-page {
  --auth-hero-bg: #071220;
  --auth-hero-accent: #3b82f6;
  --auth-hero-glow: rgba(59, 130, 246, 0.45);
  --auth-panel-bg: #e8eef6;
  --auth-card-bg: rgba(255, 255, 255, 0.88);
  --auth-card-border: rgba(255, 255, 255, 0.72);
  --auth-card-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 24px 48px rgba(15, 23, 42, 0.12);
  --auth-input-bg: rgba(248, 250, 252, 0.9);
  --auth-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  font-family: var(--font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  color: var(--color-text, #1a2535);
  background: var(--auth-hero-bg);
  -webkit-font-smoothing: antialiased;
}

.auth-page--split {
  display: block;
  overflow: hidden;
}

.auth-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
}

.auth-hero {
  display: none;
  flex: 1 1 52%;
  position: relative;
  padding: clamp(40px, 6vw, 72px);
  color: #e8f0fa;
  background:
    radial-gradient(ellipse 120% 80% at 0% 0%, rgba(37, 99, 235, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
    linear-gradient(165deg, #050d18 0%, #0c1a30 42%, #0a1628 100%);
  overflow: hidden;
  isolation: isolate;
}

.auth-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 30%,
    rgba(255, 255, 255, 0.06) 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

.auth-page--split .auth-hero {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(31, 95, 178, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 75%, rgba(26, 122, 74, 0.22) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.auth-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 15%, transparent 92%);
  pointer-events: none;
}

.auth-hero__orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.auth-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  animation: auth-orb-float 16s ease-in-out infinite;
}
.auth-hero__orb--1 {
  width: 320px;
  height: 320px;
  left: -80px;
  top: 8%;
  background: radial-gradient(circle, rgba(31, 95, 178, 0.55) 0%, transparent 70%);
  animation-duration: 18s;
}
.auth-hero__orb--2 {
  width: 260px;
  height: 260px;
  right: -60px;
  bottom: 6%;
  background: radial-gradient(circle, rgba(26, 122, 74, 0.4) 0%, transparent 70%);
  animation-duration: 22s;
  animation-delay: -6s;
}
.auth-hero__orb--3 {
  width: 200px;
  height: 200px;
  left: 42%;
  bottom: -60px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.35) 0%, transparent 70%);
  animation-duration: 20s;
  animation-delay: -3s;
}
@keyframes auth-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(24px, -20px) scale(1.08); }
}

.auth-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.auth-feature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(241, 245, 249, 0.95);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background 0.22s var(--auth-ease), transform 0.22s var(--auth-ease),
              border-color 0.22s ease, box-shadow 0.22s ease;
  animation: auth-feature-in 0.55s var(--auth-ease) both;
}
@keyframes auth-feature-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.auth-feature:nth-child(1) { animation-delay: 0.05s; }
.auth-feature:nth-child(2) { animation-delay: 0.14s; }
.auth-feature:nth-child(3) { animation-delay: 0.23s; }
.auth-feature:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.auth-feature__icon {
  flex-shrink: 0;
  color: #5eead4;
  filter: drop-shadow(0 0 6px rgba(94, 234, 212, 0.35));
}

.auth-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  animation: auth-fade-in 0.55s ease both;
}

.auth-hero__brand {
  margin-bottom: var(--space-4, 24px);
}

.auth-brand--hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.auth-brand--hero .auth-brand__plate {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 132px;
  min-height: 84px;
  padding: 18px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 12px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.auth-brand--hero.auth-brand--wide .auth-brand__plate {
  min-width: 220px;
  max-width: min(320px, 72vw);
  padding: 20px 32px;
}

.auth-brand--hero.auth-brand--tall .auth-brand__plate {
  min-width: 100px;
  padding: 20px 22px;
}

.auth-brand--hero .auth-brand__plate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, transparent 48%);
  pointer-events: none;
}

.auth-brand--hero .auth-brand__plate--monogram {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(232, 242, 255, 0.95) 100%);
}

.auth-brand--hero .auth-brand__img {
  position: relative;
  z-index: 1;
  max-height: 76px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.auth-brand--hero.auth-brand--wide .auth-brand__img {
  max-height: 68px;
  max-width: min(280px, 62vw);
}

.auth-brand--hero.auth-brand--tall .auth-brand__img {
  max-height: 88px;
  max-width: 120px;
}

.auth-brand--hero .auth-brand__monogram {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #1f5fb2 0%, #2563c4 45%, #17467f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-brand--hero .auth-brand__caption {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 240, 250, 0.72);
}

.auth-hero__emblem {
  position: absolute;
  top: 6%;
  right: -4%;
  width: min(360px, 50vw);
  height: min(280px, 38vh);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  opacity: 0.13;
  filter: blur(0.5px);
}

.auth-hero__emblem--wide {
  top: 4%;
  right: -6%;
  width: min(440px, 58vw);
  height: min(200px, 28vh);
  opacity: 0.11;
}

.auth-hero__emblem--tall {
  width: min(260px, 40vw);
  height: min(320px, 42vh);
}

.auth-hero__emblem-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.auth-hero__emblem-monogram {
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
}

.auth-hero__brand .auth-brand__img {
  max-height: 64px;
  max-width: 220px;
}

.auth-hero__brand .auth-brand__text {
  color: #fff;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.auth-hero__headline {
  margin: 0 0 var(--space-3, 16px);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  background: linear-gradient(135deg, #ffffff 0%, #c7ddf7 55%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-hero__text {
  margin: 0 0 var(--space-5, 32px);
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(203, 213, 225, 0.88);
  max-width: 38ch;
}

.auth-hero__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-hero__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(232, 240, 250, 0.92);
  line-height: 1.45;
}

.auth-hero__list-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(31, 95, 178, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: transparent;
  margin-top: 2px;
  position: relative;
}
.auth-hero__list-icon::after {
  border-color: #fff;
  margin-top: -1px;
}

.auth-panel {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 56px);
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(31, 95, 178, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #eef2f8 0%, var(--auth-panel-bg) 45%, #e2e9f2 100%);
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.auth-page--split .auth-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(31, 95, 178, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.auth-panel__watermark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.auth-panel__watermark-img {
  max-width: min(400px, 76vw);
  max-height: min(240px, 36vh);
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.12;
  filter: blur(4px) saturate(1.12);
  transform: scale(1.02);
  animation: auth-watermark-float 18s ease-in-out infinite;
}

.auth-panel__watermark--wide .auth-panel__watermark-img {
  max-width: min(520px, 90vw);
  max-height: min(150px, 22vh);
  opacity: 0.1;
}

.auth-panel__watermark--tall .auth-panel__watermark-img {
  max-width: min(280px, 55vw);
  max-height: min(300px, 40vh);
}

.auth-panel__watermark--has-logo .auth-panel__watermark-glow {
  width: min(520px, 88vw);
  height: min(200px, 32vh);
  border-radius: 40%;
}

.auth-panel__watermark-monogram {
  font-size: clamp(7rem, 22vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(31, 95, 178, 0.09);
  user-select: none;
  animation: auth-watermark-float 18s ease-in-out infinite;
}
.auth-panel__watermark-glow {
  position: absolute;
  width: min(420px, 80vw);
  height: min(320px, 50vh);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(31, 95, 178, 0.14) 0%, transparent 68%);
  filter: blur(24px);
}
.auth-panel__watermark-name {
  position: absolute;
  bottom: 12%;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(31, 95, 178, 0.06);
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes auth-watermark-float {
  0%, 100% { transform: scale(1.05) translateY(0); }
  50% { transform: scale(1.08) translateY(-6px); }
}

.auth-page:not(.auth-page--split) .auth-panel {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  padding: var(--space-4, 24px);
  background: linear-gradient(145deg, #0f2744 0%, #1a3d6b 45%, #0d2138 100%);
}

.auth-page:not(.auth-page--split) .auth-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(31, 95, 178, 0.28) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(28, 138, 85, 0.14) 0%, transparent 40%);
  pointer-events: none;
}

.auth-layout {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  animation: auth-slide-up 0.55s var(--auth-ease) both;
}

.auth-page--split:has(.auth-brand-lockup--wide) .auth-layout {
  max-width: 440px;
}

.auth-card {
  position: relative;
  background: var(--auth-card-bg);
  padding: 38px 38px 30px;
  border-radius: 22px;
  box-shadow: var(--auth-card-shadow);
  border: 1px solid var(--auth-card-border);
  width: 100%;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  transition: box-shadow 0.35s var(--auth-ease), transform 0.35s var(--auth-ease);
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1f5fb2, #3b82f6, #22c55e, #3b82f6, #1f5fb2);
  background-size: 200% 100%;
  animation: auth-accent-shift 8s linear infinite;
}

.auth-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.2) 40%,
    rgba(31, 95, 178, 0.15) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes auth-accent-shift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.auth-card:focus-within {
  box-shadow:
    0 8px 16px rgba(31, 95, 178, 0.08),
    0 28px 56px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(31, 95, 178, 0.14);
  transform: translateY(-2px);
}

.auth-page:not(.auth-page--split) .auth-card {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.auth-card__brand {
  margin-bottom: var(--space-2, 12px);
  text-align: center;
  position: relative;
  z-index: 1;
}

.auth-brand-lockup {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px 0 2px;
}

.auth-brand-lockup__halo {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 108px;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(31, 95, 178, 0.22) 0%, rgba(31, 95, 178, 0) 68%);
  filter: blur(10px);
  pointer-events: none;
}

.auth-brand-lockup__frame {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 12px 32px rgba(31, 95, 178, 0.16),
    0 4px 10px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: transform 0.35s var(--auth-ease), box-shadow 0.35s var(--auth-ease);
}
.auth-card:hover .auth-brand-lockup__frame {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 16px 40px rgba(31, 95, 178, 0.2),
    0 6px 14px rgba(15, 23, 42, 0.08);
}

.auth-brand-lockup--has-logo .auth-brand-lockup__frame {
  width: auto;
  height: auto;
  min-height: 72px;
  padding: 14px 18px;
}

.auth-brand-lockup--has-logo.auth-brand-lockup--wide .auth-brand-lockup__frame {
  min-width: min(268px, 82vw);
  max-width: min(300px, 88vw);
  padding: 16px 22px;
  border-radius: 18px;
}

.auth-brand-lockup--has-logo.auth-brand-lockup--balanced .auth-brand-lockup__frame {
  min-width: 140px;
  max-width: 220px;
  padding: 14px 20px;
}

.auth-brand-lockup--has-logo.auth-brand-lockup--tall .auth-brand-lockup__frame {
  width: 96px;
  height: auto;
  min-height: 96px;
  padding: 14px 16px;
}

.auth-brand-lockup--has-logo .auth-brand-lockup__halo {
  width: 120px;
  height: 120px;
  border-radius: 28px;
}

.auth-brand-lockup--has-logo.auth-brand-lockup--wide .auth-brand-lockup__halo {
  width: min(280px, 84vw);
  height: 96px;
  border-radius: 22px;
  top: 10px;
}

.auth-brand-lockup__img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.auth-brand-lockup--has-logo.auth-brand-lockup--wide .auth-brand-lockup__img {
  max-height: 56px;
  max-width: min(256px, 76vw);
}

.auth-brand-lockup--has-logo.auth-brand-lockup--balanced .auth-brand-lockup__img {
  max-height: 60px;
  max-width: 200px;
}

.auth-brand-lockup--has-logo.auth-brand-lockup--tall .auth-brand-lockup__img {
  max-height: 80px;
  max-width: 72px;
}

/* Product/system logo: transparent PNG — no black matte behind the emblem */
.auth-brand-lockup--system .auth-brand-lockup__frame {
  width: auto;
  height: auto;
  min-width: 0;
  max-width: none;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.auth-brand-lockup--system .auth-brand-lockup__halo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  top: 4px;
}
.auth-brand-lockup--system .auth-brand-lockup__img {
  max-width: 96px;
  max-height: 96px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}
.auth-card:hover .auth-brand-lockup--system .auth-brand-lockup__frame {
  transform: none;
  box-shadow: none;
}

.auth-brand-lockup--has-logo {
  padding: 10px 0 6px;
  margin-bottom: 4px;
}

.auth-brand-lockup--has-logo.auth-brand-lockup--wide .auth-brand-lockup__frame {
  min-width: min(280px, 86vw);
  max-width: min(300px, 92vw);
  padding: 18px 24px;
  border-radius: 16px;
}

.auth-brand-lockup--has-logo.auth-brand-lockup--wide .auth-brand-lockup__img {
  max-height: 64px;
  max-width: min(270px, 80vw);
}

.auth-page--split .auth-brand-lockup--has-logo + .auth-card__eyebrow {
  margin-top: 6px;
}

.auth-brand-lockup__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(31, 95, 178, 0.35), rgba(255, 255, 255, 0.1) 42%, rgba(26, 122, 74, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.auth-brand-lockup__monogram {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #1f5fb2 0%, #2d6fd4 50%, #17467f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-brand-lockup__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text, #14253c);
  line-height: 1.25;
  max-width: 280px;
}

.auth-brand-lockup__rule {
  margin: 2px 0 0;
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(31, 95, 178, 0.55), transparent);
}

.auth-page--split .auth-card__brand {
  margin-bottom: 6px;
}

.auth-page--split .auth-card__brand .auth-brand__img {
  display: none;
}

.auth-page--split .auth-card__eyebrow {
  margin-top: 6px;
}

.auth-page--split .auth-brand-lockup--has-logo + .auth-card__eyebrow {
  margin-top: 2px;
}

.auth-brand__img {
  max-height: 72px;
  max-width: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.auth-brand__text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary, #1f5fb2);
  letter-spacing: -0.02em;
  text-align: center;
}

.auth-card__eyebrow {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary, #1f5fb2);
  opacity: 0.9;
}

.auth-card__title {
  margin: 0 0 10px;
  font-size: 1.72rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.auth-page:not(.auth-page--split) .auth-card__title,
.auth-page:not(.auth-page--split) .auth-card__subtitle {
  text-align: center;
}

.auth-card__subtitle {
  margin: 0 0 var(--space-4, 24px);
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.55;
}

.auth-card .form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: ui-fade-in-fast 0.4s ease both;
}
.auth-field:nth-of-type(1) { animation-delay: 0.06s; }
.auth-field:nth-of-type(2) { animation-delay: 0.12s; }

.auth-field .form__label {
  display: block;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--color-text-secondary, #334155);
}

.auth-field__wrap {
  position: relative;
  transition: transform 0.2s var(--auth-ease);
}
.auth-field__wrap:focus-within {
  transform: translateY(-1px);
}
.auth-field__wrap:focus-within .auth-field__icon {
  color: var(--color-primary, #1f5fb2);
}

.auth-field__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
  line-height: 0;
  transition: color 0.2s ease;
}

.auth-field__icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.auth-card .form__input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 1.5px solid #d1dae6;
  background: var(--auth-input-bg);
  color: var(--color-text, #1a2535);
  transition: border-color 0.2s ease, box-shadow 0.2s var(--auth-ease),
              background 0.2s ease, transform 0.2s var(--auth-ease);
}

.auth-field__wrap .form__input {
  padding-left: 42px;
}

.auth-field__wrap--password .form__input {
  padding-right: 44px;
}

.auth-field__toggle {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm, 5px);
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.14s ease, background 0.14s ease;
}

.auth-field__toggle:hover {
  color: var(--color-primary, #1f5fb2);
  background: rgba(31, 95, 178, 0.08);
}

.auth-field__toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(31, 95, 178, 0.35);
}

.auth-field__toggle.is-visible {
  color: var(--color-primary, #1f5fb2);
}

.auth-field__toggle svg {
  display: block;
  width: 18px;
  height: 18px;
}

.auth-card .form__input::placeholder {
  color: #94a3b8;
}

.auth-card .form__input:hover {
  border-color: #a8b4c4;
  background: #fff;
}

.auth-card .form__input:focus {
  border-color: var(--color-primary, #1f5fb2);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(31, 95, 178, 0.14), 0 4px 12px rgba(31, 95, 178, 0.08);
}

.auth-card .btn--primary {
  position: relative;
  margin-top: 6px;
  width: 100%;
  padding: 13px 20px;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a56b8 0%, #2563eb 45%, #1d4ed8 100%);
  border: none;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(29, 78, 216, 0.2), 0 8px 24px rgba(31, 95, 178, 0.32);
  transition: transform 0.2s var(--auth-ease), box-shadow 0.2s var(--auth-ease), filter 0.2s ease;
  overflow: hidden;
}

.auth-card .btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.55s var(--auth-ease);
}

.auth-card .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(29, 78, 216, 0.25), 0 14px 32px rgba(31, 95, 178, 0.38);
  filter: brightness(1.05);
}
.auth-card .btn--primary:hover::before {
  transform: translateX(120%);
}

.auth-card .btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(31, 95, 178, 0.25);
}

.auth-card .btn--primary.is-loading {
  color: transparent;
  pointer-events: none;
}
.auth-card .btn--primary.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.auth-otp-input {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  padding-left: 14px !important;
}
.auth-field__wrap .auth-otp-input { padding-left: 42px !important; }

#resendOtpBtn:disabled {
  color: var(--color-muted, #94a3b8);
  cursor: not-allowed;
  opacity: 0.8;
}
#resendOtpBtn:disabled:hover { text-decoration: none; }

.auth-card__links {
  margin-top: var(--space-4, 24px);
  padding-top: var(--space-3, 16px);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  text-align: center;
  font-size: 0.88rem;
}

.auth-card__links a,
.auth-card__links .link-btn {
  color: var(--color-primary, #1f5fb2);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.auth-card__links a:hover,
.auth-card__links .link-btn:hover:not(:disabled) {
  color: #17467f;
  text-decoration: underline;
}

.auth-footer {
  margin-top: var(--space-4, 24px);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #94a3b8;
  text-align: center;
  opacity: 0.85;
}

.auth-page:not(.auth-page--split) .auth-footer {
  color: rgba(255, 255, 255, 0.5);
}

.auth-card .alert {
  margin-bottom: var(--space-3, 16px);
  border-radius: var(--radius-md, 10px);
  font-size: 0.88rem;
  line-height: 1.45;
}

.auth-card .alert--error {
  background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.06);
}

.auth-card .alert--info {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}

.auth-card__success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 11px 14px;
  border-radius: var(--radius-md, 10px);
  margin-bottom: var(--space-3, 16px);
  font-size: 0.88rem;
  line-height: 1.45;
}

.auth-card .form__input.is-valid {
  border-color: var(--color-success, #1a7a4a);
  box-shadow: 0 0 0 3px rgba(26, 122, 74, 0.12);
}
.auth-card .form__input.is-invalid {
  border-color: var(--color-danger, #c0372c);
  box-shadow: 0 0 0 3px rgba(192, 55, 44, 0.12);
  animation: shake 0.3s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-5px); }
  75%       { transform: translateX(5px); }
}

@keyframes auth-slide-up {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes auth-fade-in {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.auth-hero__dots {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.auth-hero__dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  animation: float-dot linear infinite;
}
@keyframes float-dot {
  from { transform: translateY(0) rotate(0deg); opacity: 0.06; }
  50%  { opacity: 0.14; }
  to   { transform: translateY(-60px) rotate(180deg); opacity: 0.06; }
}

@media (max-width: 900px) {
  .auth-shell {
    flex-direction: column;
  }

  .auth-page--split .auth-hero {
    display: block;
    flex: none;
    padding: 32px 24px 28px;
    text-align: center;
  }

  .auth-hero__inner {
    max-width: 520px;
    margin: 0 auto;
  }

  .auth-hero__brand {
    margin-bottom: 14px;
    align-items: center;
  }

  .auth-brand--hero {
    align-items: center;
  }

  .auth-hero__brand .auth-brand__plate {
    margin: 0 auto;
  }

  .auth-hero__emblem {
    display: none;
  }

  .auth-hero__brand .auth-brand__img {
    max-height: 56px;
    margin: 0 auto;
  }

  .auth-brand--hero.auth-brand--wide .auth-brand__img {
    max-height: 52px;
    max-width: min(240px, 78vw);
  }

  .auth-brand-lockup--has-logo.auth-brand-lockup--wide .auth-brand-lockup__frame {
    min-width: min(240px, 90vw);
    max-width: 100%;
    padding: 14px 16px;
  }

  .auth-brand-lockup--has-logo.auth-brand-lockup--wide .auth-brand-lockup__img {
    max-height: 48px;
    max-width: min(220px, 82vw);
  }

  .auth-hero__headline {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .auth-hero__text {
    margin-bottom: 16px;
    font-size: 0.88rem;
    max-width: none;
  }

  .auth-feature-row {
    justify-content: center;
  }

  .auth-hero__list {
    display: none;
  }

  .auth-hero::after {
    display: none;
  }

  .auth-panel {
    flex: 1;
    padding: 28px 20px 36px;
    justify-content: flex-start;
  }

  .auth-page--split .auth-card__brand {
    display: block;
    margin-bottom: 10px;
  }

  .auth-card {
    padding: 28px 24px 24px;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 24px 20px 20px;
    border-radius: var(--radius-lg, 14px);
  }

  .auth-card__title {
    font-size: 1.45rem;
  }

  .auth-page:not(.auth-page--split) .auth-panel {
    padding: 16px;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .auth-panel__watermark-img,
  .auth-panel__watermark-monogram {
    animation: none;
    transform: scale(1.05);
  }
  .auth-hero__orb,
  .auth-card::before {
    animation: none;
  }
  .auth-field,
  .auth-feature,
  .auth-layout,
  .auth-card:focus-within {
    animation: none;
    transform: none;
  }
  .auth-card .btn--primary::before {
    display: none;
  }
}
