/* ovo Identity — authentication screens (login, account activation, password change).
   Visual language shared with the ovo admin consoles: dark navy surface, centred branded card, blue/mint accent.
   No external font, image or script: everything is served from this origin. */
:root {
  --bg: #0f1220;
  --panel: #151a2e;
  --text: #e8ecff;
  --muted: #a8b0d9;
  --line: rgba(255, 255, 255, .10);
  --accent: #6aa9ff;
  --accent-2: #7cf0c5;
  --danger: #ff8c8c;
  --ok: #7cf0c5;
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 30% -10%, rgba(106, 169, 255, .25), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(124, 240, 197, .16), transparent 50%),
    var(--bg);
}
button, input { font: inherit; }
a { color: var(--accent); }

.auth { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 18px; }
.authCard {
  width: min(460px, 100%);
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)), var(--panel);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .35);
  padding: 20px;
}
.authBrand {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .03);
}
.brandMark {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(135deg, rgba(106, 169, 255, .75), rgba(124, 240, 197, .5));
  color: #0f1220; font-weight: 900; font-size: 15px; letter-spacing: -.02em;
}
.authName { font-weight: 900; }
.authSub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.authTitle { margin: 18px 2px 6px; font-size: 24px; line-height: 1.2; }
.authHint { margin: 0 2px 14px; color: var(--muted); font-size: 14px; line-height: 1.45; }

.authError, .authSuccess {
  padding: 10px 14px; border-radius: 10px; font-size: 14px; margin: 0 0 12px;
}
.authError { background: rgba(255, 80, 80, .12); border: 1px solid rgba(255, 80, 80, .3); color: var(--danger); }
.authSuccess { background: rgba(124, 240, 197, .10); border: 1px solid rgba(124, 240, 197, .3); color: var(--ok); }

.authForm { margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; color: var(--muted); }
.field input[type="email"], .field input[type="password"], .field input[type="text"] {
  width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04); color: var(--text); outline: none;
}
.field input::placeholder { color: rgba(168, 176, 217, .55); }
.field input:focus-visible, .pwdToggle:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.field input[aria-invalid="true"] { border-color: rgba(255, 80, 80, .55); }
.pwdWrap { position: relative; }
.pwdWrap input { padding-right: 84px; }
.pwdToggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; color: var(--muted); cursor: pointer;
  padding: 6px 10px; font-size: 13px; border-radius: 8px;
}
.pwdToggle:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.fieldHint { font-size: 12px; color: var(--muted); }
.fieldHint[data-state="bad"] { color: var(--danger); }
.fieldHint[data-state="ok"] { color: var(--ok); }


.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04); color: var(--text); cursor: pointer; font-weight: 600;
}
.btn:hover { background: rgba(255, 255, 255, .08); }
.btnPrimary { width: 100%; border-color: rgba(106, 169, 255, .55); background: linear-gradient(180deg, #6aa9ff, #4d8fea); color: #08101f; font-weight: 800; }
.btnPrimary:hover { background: linear-gradient(180deg, #7db6ff, #5a9bf5); }
.btnSubmit { margin-top: 8px; }
.btnPrimary:disabled { opacity: .6; cursor: progress; }
.authActions { display: flex; justify-content: center; margin-top: 12px; }
.btnGhost { background: transparent; color: var(--muted); font-weight: 500; }
.authNote { margin: 12px 2px 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.authPrivacy { margin: 18px 2px 0; padding-top: 12px; border-top: 1px solid var(--line); text-align: center; }
.authPrivacy p { margin: 0; font-size: 12px; line-height: 1.5; color: rgba(168, 176, 217, .8); }
.authPrivacy .authPrivacySmall { margin-top: 4px; font-size: 11px; color: rgba(168, 176, 217, .65); }
.authFooter { margin: 16px 0 0; text-align: center; font-size: 12px; color: rgba(168, 176, 217, .7); }
.reqList { margin: 0 0 12px; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }

@media (max-width: 420px) {
  .auth { padding: 12px; align-items: start; padding-top: 6vh; }
  .authCard { padding: 16px; border-radius: 16px; }
  .authTitle { font-size: 22px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .pwdToggle, .field input { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
}
