:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv01", "ss03";
  background: #08090a;
  color: #f7f8f8;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 14% 8%, rgba(94, 106, 210, 0.22), transparent 34%),
    radial-gradient(circle at 88% 88%, rgba(39, 166, 68, 0.08), transparent 30%),
    #08090a;
}

.login-shell {
  width: min(420px, calc(100% - 32px));
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.login-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 34px; }
.brand-row { display: flex; align-items: center; gap: 10px; }
.brand-lockup { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1; }
.brand-mark {
  min-width: 38px; height: 28px; padding: 0 7px; display: grid; place-items: center;
  border-radius: 8px; background: #5e6ad2; color: #fff; font-size: 11px; font-weight: 650;
  box-shadow: 0 0 24px rgba(113, 112, 255, 0.25);
}
.brand-beta { color: #34d399; font-size: 8px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.brand-name { color: #d0d6e0; font-size: 13px; font-weight: 510; }
.eyebrow { color: #828fff; text-transform: uppercase; letter-spacing: 0.14em; font-size: 10px; font-weight: 590; }
h1 { margin: 9px 0 8px; font-size: 32px; line-height: 1.12; letter-spacing: -0.7px; font-weight: 510; }
p { color: #8a8f98; margin: 0 0 28px; line-height: 1.55; font-size: 14px; }
label { display: block; margin: 18px 0 7px; color: #d0d6e0; font-size: 12px; font-weight: 510; }
input {
  width: 100%; padding: 12px 13px; border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.10); background: rgba(255, 255, 255, 0.025);
  color: #f7f8f8; font: inherit; outline: none;
}
input:focus { border-color: #7170ff; box-shadow: 0 0 0 3px rgba(113, 112, 255, 0.16); }
button {
  width: 100%; margin-top: 24px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px; background: #5e6ad2; color: #fff; font: 590 13px inherit; cursor: pointer;
  transition: background 150ms ease;
}
button:hover { background: #7170ff; }
button:focus-visible { outline: 2px solid #828fff; outline-offset: 3px; }
.language-switcher { display: inline-flex; flex: none; padding: 2px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 7px; background: rgba(255, 255, 255, 0.02); }
.language-button { width: auto; min-width: 30px; height: 26px; margin: 0; padding: 0 7px; border: 0; border-radius: 5px; background: transparent; color: #62666d; font-size: 10px; font-weight: 590; transform: none; }
.language-button:hover { background: rgba(255, 255, 255, 0.04); color: #d0d6e0; transform: none; }
.language-button[aria-pressed="true"] { background: rgba(113, 112, 255, 0.16); color: #c7c9ff; }
.error { padding: 11px 13px; border: 1px solid rgba(248, 113, 113, 0.2); border-radius: 7px; background: rgba(127, 29, 29, 0.25); color: #fecaca; margin: 18px 0 0; font-size: 13px; }
.security-check { margin: 18px 0 4px; padding: 14px; border: 1px solid rgba(113, 112, 255, 0.18); border-radius: 10px; background: rgba(113, 112, 255, 0.07); }
.security-check h2 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.security-check p { margin: 8px 0 0; font-size: 12px; line-height: 1.45; }
.ip-display { margin-top: 10px; color: #d0d6e0; font-size: 12px; }
.ip-display strong { color: #f7f8f8; font-weight: 650; }
.consent-check { display: flex; align-items: flex-start; gap: 9px; line-height: 1.45; }
.consent-check input { width: auto; margin-top: 2px; }
.captcha-box { display: grid; grid-template-columns: max-content 1fr; align-items: center; gap: 10px; }
.captcha-box span { color: #d0d6e0; font-size: 12px; font-weight: 650; }
.captcha-box input { width: 100%; }
.security-note { margin: 24px 0 0; display: flex; align-items: center; gap: 7px; color: #62666d; font-size: 11px; }
.security-dot { width: 6px; height: 6px; border-radius: 50%; background: #27a644; box-shadow: 0 0 10px rgba(39, 166, 68, 0.7); }
.verification-code { text-align: center; font-size: 24px; font-weight: 600; letter-spacing: 0.35em; font-variant-numeric: tabular-nums; }
.login-link { display: block; margin-top: 18px; color: #9aa3ff; font-size: 12px; text-align: center; text-decoration: none; }
.login-link:hover { color: #c7c9ff; text-decoration: underline; }

/* Apparel-only genuine Raipor wordmark; preserve its native 6:1 ratio. */
.raipor-logo { display: block; width: 144px; height: 24px; object-fit: contain; flex: none; }
.brand-lockup { flex-shrink: 0; }
@media (max-width: 600px) { .raipor-logo { width: 120px; height: 20px; } }

.login-topline, .brand-row { flex-wrap: wrap; }
.brand-home { text-decoration: none; }
.brand-home:focus-visible { outline: 2px solid #828fff; outline-offset: 4px; }
