/**
 * AAA CAR — Auth shell (reference split)
 * Full-bleed hero + grid form column. Logo blues throughout.
 */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --t2w-auth-ink: #050b2c;
  --t2w-auth-muted: #64748b;
  --t2w-auth-line: #dbe3ee;
  --t2w-auth-accent: #00cfff;
  --t2w-auth-accent-mid: #38bdf8;
  --t2w-auth-accent-action: #008cff;
  --t2w-auth-accent-deep: #0057d9;
  --t2w-auth-indigo: #003399;
  --t2w-auth-navy: #050b2c;
  --t2w-auth-surface: #eef2f6;
  --t2w-auth-white: #ffffff;
  --t2w-auth-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --t2w-auth-font: "Manrope", "Segoe UI", system-ui, sans-serif;
}

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

body.t2w-auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--t2w-auth-font);
  color: var(--t2w-auth-ink);
  background: var(--t2w-auth-surface) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.t2w-auth-body #app {
  min-height: 100vh;
}

.t2w-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  animation: t2w-auth-in 420ms var(--t2w-auth-ease) both;
}

@keyframes t2w-auth-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Hero / brand column ---------- */
.t2w-auth__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 1rem 0 1rem 1rem;
  padding: 1.75rem 1.85rem 1.5rem;
  color: #f8fafc;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  min-height: calc(100vh - 2rem);
}

.t2w-auth__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
}

.t2w-auth__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.t2w-auth__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 11, 44, 0.35) 0%, rgba(5, 11, 44, 0.18) 38%, rgba(5, 11, 44, 0.78) 100%),
    linear-gradient(90deg, rgba(5, 11, 44, 0.25) 0%, transparent 55%);
}

.t2w-auth__brand-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.t2w-auth__brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.t2w-auth__brand-logo img {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.t2w-auth__stats {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: min(210px, 42vw);
}

.t2w-auth__stat {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(5, 11, 44, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.28);
}

.t2w-auth__stat-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.78);
}

.t2w-auth__stat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
  flex-shrink: 0;
}

.t2w-auth__stat-dot--info {
  background: var(--t2w-auth-accent-mid);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.t2w-auth__stat-value {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

.t2w-auth__stat-meta {
  margin: 0.3rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.78);
}

.t2w-auth__stat-meta strong {
  color: #86efac;
  font-weight: 700;
}

.t2w-auth__stat-meta strong.is-info {
  color: var(--t2w-auth-accent-mid);
}

.t2w-auth__brand-copy {
  position: relative;
  z-index: 2;
  max-width: 28rem;
  margin-top: auto;
  padding-top: 3rem;
}

.t2w-auth__brand-copy h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 2px 18px rgba(5, 11, 44, 0.35);
}

.t2w-auth__brand-copy p {
  margin: 0 0 1.5rem;
  max-width: 26rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.9);
  font-weight: 500;
}

.t2w-auth__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.62);
}

.t2w-auth__nav li:not(:last-child)::after {
  content: "/";
  margin: 0 0.45rem;
  color: rgba(248, 250, 252, 0.35);
}

/* ---------- Form column ---------- */
.t2w-auth__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 2.25rem;
  background-color: var(--t2w-auth-surface);
  background-image:
    linear-gradient(rgba(5, 11, 44, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 11, 44, 0.035) 1px, transparent 1px),
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255, 255, 255, 0.9), transparent 70%);
  background-size: 48px 48px, 48px 48px, auto;
  background-position: center center, center center, center;
}

.t2w-auth__panel-inner {
  width: min(420px, 100%);
}

.t2w-auth__panel-head {
  margin-bottom: 1.5rem;
}

.t2w-auth__kicker {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.t2w-auth__panel-head h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.85rem, 2.6vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--t2w-auth-ink);
  line-height: 1.12;
}

.t2w-auth__panel-head p {
  margin: 0;
  color: var(--t2w-auth-muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

.t2w-auth__card {
  padding: 1.5rem 1.45rem 1.35rem;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  box-shadow:
    0 1px 2px rgba(5, 11, 44, 0.04),
    0 18px 40px rgba(5, 11, 44, 0.08);
}

.t2w-auth__form .form-group-cms {
  position: relative;
  margin-bottom: 1.05rem;
}

.t2w-auth__form label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.01em;
}

.t2w-auth__form .form-control {
  display: block;
  width: 100%;
  height: auto;
  min-height: 48px;
  margin: 0;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--t2w-auth-line);
  border-radius: 12px;
  background: #fff;
  color: var(--t2w-auth-ink);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  box-shadow: none;
  transition: border-color 160ms var(--t2w-auth-ease), box-shadow 160ms var(--t2w-auth-ease);
}

.t2w-auth__form .form-control::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.t2w-auth__form .form-control:hover {
  border-color: #cbd5e1;
}

.t2w-auth__form .form-control:focus {
  border-color: var(--t2w-auth-indigo);
  box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.14);
  outline: none;
}

.t2w-auth__form .form-control.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.t2w-auth__form .invalid-feedback {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #dc2626;
  font-weight: 500;
}

.t2w-auth__password-wrap {
  position: relative;
}

.t2w-auth__password-wrap .form-control {
  padding-right: 2.75rem;
}

.t2w-auth__toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  border-radius: 8px;
  transition: color 140ms var(--t2w-auth-ease), background 140ms var(--t2w-auth-ease);
}

.t2w-auth__toggle:hover {
  color: var(--t2w-auth-accent-deep);
  background: rgba(0, 140, 255, 0.1);
}

.t2w-auth__toggle:focus-visible {
  outline: 2px solid var(--t2w-auth-accent-action);
  outline-offset: 2px;
}

.t2w-auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.15rem 0 1.15rem;
}

.t2w-auth__remember {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.t2w-auth__remember input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--t2w-auth-indigo);
  cursor: pointer;
}

.t2w-auth__meta {
  margin: 0;
}

.t2w-auth__meta a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--t2w-auth-accent-deep);
  text-decoration: none;
}

.t2w-auth__meta a:hover {
  color: var(--t2w-auth-accent-action);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.t2w-auth__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #008cff 0%, #0057d9 55%, #003399 100%);
  color: #fff !important;
  font-size: 0.975rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 87, 217, 0.28);
  transition: transform 140ms var(--t2w-auth-ease), box-shadow 140ms var(--t2w-auth-ease), filter 140ms var(--t2w-auth-ease);
}

.t2w-auth__submit:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 26px rgba(0, 87, 217, 0.36);
  color: #fff !important;
}

.t2w-auth__submit:active {
  transform: scale(0.985);
}

.t2w-auth__submit:focus-visible {
  outline: 2px solid var(--t2w-auth-accent);
  outline-offset: 3px;
}

.t2w-auth__footnote {
  margin: 1.35rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .t2w-auth {
    grid-template-columns: 1fr;
  }

  .t2w-auth__brand {
    margin: 0.75rem 0.75rem 0;
    min-height: 320px;
    padding: 1.25rem 1.25rem 1.15rem;
  }

  .t2w-auth__stats {
    width: min(180px, 46vw);
  }

  .t2w-auth__stat {
    padding: 0.65rem 0.75rem;
  }

  .t2w-auth__stat-value {
    font-size: 1.2rem;
  }

  .t2w-auth__brand-copy h2 {
    font-size: 1.55rem;
  }

  .t2w-auth__brand-copy p {
    margin-bottom: 1rem;
    font-size: 0.875rem;
  }

  .t2w-auth__panel {
    padding: 1.75rem 1.25rem 2rem;
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .t2w-auth__brand-top {
    flex-direction: column;
  }

  .t2w-auth__stats {
    width: 100%;
    flex-direction: row;
  }

  .t2w-auth__stat {
    flex: 1;
  }

  .t2w-auth__nav {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }

  .t2w-auth__card {
    padding: 1.25rem 1.1rem 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .t2w-auth,
  .t2w-auth__submit,
  .t2w-auth__toggle,
  .t2w-auth__form .form-control {
    animation: none !important;
    transition: none !important;
  }

  .t2w-auth__video {
    display: none;
  }

  .t2w-auth__media {
    background:
      radial-gradient(520px 360px at 70% 35%, rgba(0, 207, 255, 0.28), transparent 60%),
      linear-gradient(165deg, #003399 0%, #050b2c 55%, #03071a 100%);
  }

  .t2w-auth__stat {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(5, 11, 44, 0.72);
  }
}
