/* ==========================================================================
   Lumina Display Systems — standalone OTP login page (no site chrome).
   Split screen: brand panel on the left, sign-in form on the right.
   ========================================================================== */
:root {
  --primary: #00285c;
  --primary-600: #013a85;
  --accent: #2f7be0;
  --accent-cyan: #16b8e6;
  --accent-soft: #eef5ff;
  --ink: #0b1220;
  --slate: #64748b;
  --line: #e2e8f0;
  --grad: linear-gradient(135deg, #2f7be0, #16b8e6);
  --grad-brand: linear-gradient(150deg, #013a85 0%, #00285c 58%, #001a3d 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
}

.login-screen {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

/* --------------------------------------------------------------- Brand side */
.login-aside {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(28px, 4vh, 48px);
  padding: clamp(28px, 4vw, 56px);
  background:
    radial-gradient(
      900px 460px at 80% 0%,
      rgba(22, 184, 230, 0.24),
      transparent 62%
    ),
    radial-gradient(
      700px 420px at 0% 100%,
      rgba(47, 123, 224, 0.28),
      transparent 66%
    ),
    var(--grad-brand);
  color: #fff;
}

/* Faint LED-wall grid, masked so it fades out towards the edges. */
.login-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 40% 45%, #000 20%, transparent 76%);
}

.login-brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.15s ease;
}

.login-brand:hover {
  transform: translateY(-1px);
}

.login-brand img {
  height: 34px;
  width: auto;
  display: block;
}

.login-aside__copy {
  max-width: 60ch;
}

.login-aside__eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.login-aside h2 {
  font-family: Poppins, sans-serif;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}

.login-aside h2 span {
  background: linear-gradient(90deg, #16b8e6, #8dbaf5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-aside p {
  margin-bottom: 21px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.login-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.login-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.login-points svg {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------- Form side */
.login-main {
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 56px);
  background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 60%);
}

.login-card {
  width: 100%;
  max-width: 420px;
}

.login-card h1 {
  font-family: Poppins, sans-serif;
  font-size: 30px;
  margin: 0 0 8px;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.login-card__sub {
  color: var(--slate);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 28px;
}

.flash {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}

.flash--error,
.flash--danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.flash--success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.flash--info,
.flash--warning {
  background: var(--accent-soft);
  border-color: #cfe0fb;
  color: var(--primary-600);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.field__wrap {
  position: relative;
  display: block;
}

.field__wrap svg {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.16s ease;
}

.field__wrap:focus-within svg {
  color: var(--accent);
}

.field input:not(.otp-box) {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font:
    400 15px Inter,
    sans-serif;
  color: var(--ink);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.field__wrap input {
  padding-left: 44px !important;
}

.field input::placeholder {
  color: #94a3b8;
}

.field input:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 123, 224, 0.14);
}

/* OTP boxes -------------------------------------------------------------- */
.otp-boxes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.otp-box {
  width: 100%;
  height: 56px;
  min-width: 0;
  text-align: center;
  font:
    700 22px Poppins,
    sans-serif;
  color: var(--primary);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.otp-box:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 123, 224, 0.14);
}

.otp-box.is-filled {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Buttons ---------------------------------------------------------------- */
.btn-login {
  position: relative;
  width: 100%;
  height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font:
    700 15px Inter,
    sans-serif;
  cursor: pointer;
  /* box-shadow: 0 18px 36px -18px rgba(1, 58, 133, 0.75); */
  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    box-shadow 0.16s ease;
}

.btn-login:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 24px 44px -20px rgba(1, 58, 133, 0.8);
}

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

.btn-login.is-loading {
  color: transparent !important;
  pointer-events: none;
}

.btn-login.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2.5px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

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

.otp-note {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--slate);
  margin: 14px 0 0;
}

.otp-note--lead {
  text-align: center;
}

.otp-note strong {
  color: var(--primary);
}

/* OR divider between email and Google sign-in */
.login-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.login-or::before,
.login-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font:
    600 14.5px Inter,
    sans-serif;
  text-decoration: none;
  transition:
    border-color 0.16s ease,
    background 0.16s ease;
}

.btn-google:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.btn-google svg {
  flex: none;
}

.login-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.login-links form {
  margin: 0;
  display: inline;
}

.login-links a,
.login-links button {
  border: 0;
  background: none;
  padding: 0;
  font:
    600 13.5px Inter,
    sans-serif;
  color: var(--accent);
  cursor: pointer;
}

.login-links a:hover,
.login-links button:hover {
  color: var(--primary-600);
  text-decoration: underline;
}

.login-links button:disabled {
  color: #94a3b8;
  cursor: default;
  text-decoration: none;
}

.login-terms {
  margin: 26px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--slate);
}

.login-terms a {
  color: var(--primary-600);
  font-weight: 600;
  text-decoration: none;
}

.login-terms a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------- Responsive */
@media (max-width: 960px) {
  /* Single full-screen layer: the brand panel is the page background and the
     form card floats on top of it. */
  .login-screen {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    min-height: 100vh;
    min-height: 100svh;
  }

  .login-aside {
    grid-area: 1 / 1;
    padding: 0;
    gap: 0;
  }

  /* Marketing copy is noise on a small screen; the logo stays, pinned top-right. */
  .login-aside__copy,
  .login-points {
    display: none;
  }

  /* Bare logo, top-left — no pill. The PNG has its own navy plate baked in,
     so no colour filter (inverting turned it into a white block). */
  .login-brand {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
  }

  .login-brand img {
    height: 30px;
  }

  .login-main {
    grid-area: 1 / 1;
    z-index: 1;
    background: none;
    align-content: center;
    padding: 84px 18px 36px;
    overflow-y: auto;
  }

  /* Glass card — the brand gradient reads through it. */
  .login-card {
    max-width: 430px;
    padding: 30px 24px 26px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 70px -26px rgba(0, 10, 30, 0.7);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    color: #fff;
  }

  .login-card h1,
  .login-card__sub {
    color: #fff;
    text-align: center;
  }

  .login-card__sub,
  .otp-note,
  .login-terms {
    color: rgba(255, 255, 255, 0.72);
  }

  .otp-note strong,
  .field label {
    color: #fff;
  }

  .field input:not(.otp-box),
  .otp-box {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.24);
    color: #fff;
  }

  .field input::placeholder {
    color: rgba(255, 255, 255, 0.55);
  }

  .field input:focus,
  .otp-box:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 4px rgba(22, 184, 230, 0.2);
  }

  .otp-box.is-filled {
    background: rgba(22, 184, 230, 0.18);
    border-color: var(--accent-cyan);
  }

  .field__wrap svg {
    color: rgba(255, 255, 255, 0.6);
  }

  .field__wrap:focus-within svg {
    color: var(--accent-cyan);
  }

  .login-or {
    color: rgba(255, 255, 255, 0.6);
  }

  .login-or::before,
  .login-or::after {
    background: rgba(255, 255, 255, 0.22);
  }

  .btn-google {
    background: rgba(255, 255, 255, 0.95);
    border-color: transparent;
    color: var(--ink);
  }

  .btn-google:hover {
    background: #fff;
  }

  .login-links a,
  .login-links button {
    color: var(--accent-cyan);
  }

  .login-links a:hover,
  .login-links button:hover {
    color: #fff;
  }

  .login-terms {
    text-align: center;
  }

  .login-terms a {
    color: #fff;
  }
}

@media (max-width: 520px) {
  .login-card h1 {
    font-size: 26px;
  }

  .otp-boxes {
    gap: 6px;
  }

  .otp-box {
    height: 50px;
    font-size: 19px;
  }
}
