/* ============================================================
   ATI Retail · Admin login standalone
   ============================================================
   Pagina dedicata de autentificare admin. Foloseste brand-tokens +
   brand-components. Form simplu fata in fata cu tabs login / set-password.
   ============================================================ */

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--brand-font-body);
  color: var(--brand-ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(139, 92, 246, 0.16), transparent 38%),
    radial-gradient(circle at 80% 90%, rgba(236, 72, 153, 0.12), transparent 36%),
    #f5f7fb;
  display: grid;
  place-items: center;
}

.login-shell {
  width: min(440px, calc(100% - 32px));
  padding: 36px 0;
}

.login-card {
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 32px 80px rgba(16, 24, 39, 0.12);
  padding: 32px 32px 24px;
}

.login-brand {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo {
  display: block;
  width: 198px;
  max-width: 80%;
  height: auto;
  margin: 0 auto 12px;
}

.eyebrow {
  margin: 0;
  color: var(--brand-violet);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login-tabs {
  display: flex;
  gap: 4px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.06);
  padding: 4px;
  margin-bottom: 22px;
}

.login-tab {
  flex: 1;
  border: none;
  border-radius: 999px;
  background: transparent;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-muted);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.login-tab.is-active {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.32);
}

.login-form {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.login-form.is-active {
  display: flex;
}

/* Atributul hidden trebuie sa bata regulile de display (ex: .login-form.is-active) — altfel
   formularul ramane vizibil dupa setState('success') pe accept-invitation. */
[hidden] { display: none !important; }

.login-form .b-btn {
  margin-top: 8px;
}

.login-hint {
  margin: 0;
  font-size: 12px;
  color: var(--brand-muted);
  line-height: 1.5;
}

.login-hint strong {
  color: var(--brand-violet-text);
  font-weight: 800;
}

.login-webauthn {
  margin: 0 0 14px;
}

.login-or {
  text-align: center;
  margin: 12px 0 4px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
}

.status-line {
  min-height: 18px;
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-muted);
  text-align: center;
}

.status-line.is-error {
  color: #c0264d;
}

.status-line.is-success {
  color: var(--brand-success);
}

.login-footer {
  margin: 22px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--brand-muted);
}

.login-footer a {
  color: var(--brand-violet-text);
  text-decoration: none;
  font-weight: 700;
}

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

.login-footer span {
  margin: 0 6px;
  opacity: 0.5;
}
