/* Sisselogimise paneel ja sessiooniriba – kasutavad admin leht, laulik ja sugupuu.
   Värvid on sama kontseptsioon A palett (öösinine, hõbe, kuld). */
:root {
  --a-ink: #e8ebef; --a-muted: #a7b1bf; --a-gold: #ffc72c; --a-line: rgba(199, 205, 213, 0.22); --a-field: #0c1626;
}
.auth-panel {
  max-width: 420px; margin: 0 auto; padding: 28px; text-align: left;
  background: #101d31; border: 1px solid var(--a-line); color: var(--a-ink);
  font-family: Manrope, system-ui, sans-serif; font-size: 15px; line-height: 1.6;
}
.auth-title { margin: 0 0 6px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 30px; font-weight: 600; line-height: 1.1; }
.auth-text { margin: 0 0 20px; color: var(--a-muted); }
.auth-text strong { color: var(--a-ink); font-weight: 600; word-break: break-all; }
.auth-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px;
  border: 1px solid rgba(214, 220, 228, 0.35); border-radius: 999px; background: transparent; color: var(--a-ink);
  font: 600 15px/1 Manrope, system-ui, sans-serif; text-decoration: none; cursor: pointer;
}
.auth-btn:hover { border-color: var(--a-ink); }
.auth-btn:disabled { opacity: 0.55; cursor: progress; }
.auth-primary { background: var(--a-gold); border-color: var(--a-gold); color: #0c1626; }
.auth-primary:hover { background: #ffd65c; border-color: #ffd65c; }
.auth-google { width: 100%; background: #ffffff; border-color: #ffffff; color: #1f2937; }
.auth-google:hover { background: #eef1f4; border-color: #eef1f4; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--a-muted); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--a-line); }
.auth-form { display: grid; gap: 12px; }
.auth-form label { display: grid; gap: 6px; color: var(--a-muted); font-size: 13px; }
.auth-form input, .auth-form textarea {
  min-height: 44px; padding: 0 12px; border: 1px solid var(--a-line); border-radius: 6px;
  background: var(--a-field); color: var(--a-ink); font: 15px Manrope, system-ui, sans-serif;
}
.auth-form textarea { padding: 10px 12px; resize: vertical; }
.auth-form input:focus, .auth-form textarea:focus { outline: 2px solid var(--a-gold); outline-offset: 1px; border-color: transparent; }
.auth-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.auth-link {
  margin-top: 12px; padding: 4px 0; border: 0; background: none; color: var(--a-muted, #a7b1bf);
  font: 500 14px Manrope, system-ui, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.auth-link:hover { color: #ffffff; }
.auth-actions .auth-link { margin-top: 0; }
.auth-msg { min-height: 1.6em; margin: 14px 0 0; color: #ffb4a8; font-size: 14px; }
.auth-msg.is-ok { color: #9fd8b0; }
.auth-msg:empty { display: none; }

/* Sessiooniriba: e-post, roll, väljalogimine */
.auth-session[hidden] { display: none; }
.auth-session { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font: 13px Manrope, system-ui, sans-serif; color: #a7b1bf; }
.auth-session .auth-link { margin: 0; font-size: 13px; }
.auth-who { max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Vahekaardid „Mul on konto“ / „Uus konto“ */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 16px; padding: 4px; border: 1px solid var(--a-line); border-radius: 999px; }
.auth-tabs button {
  min-height: 36px; border: 0; border-radius: 999px; background: none; color: var(--a-muted);
  font: 600 14px Manrope, system-ui, sans-serif; cursor: pointer;
}
.auth-tabs button[aria-selected="true"] { background: rgba(255, 255, 255, 0.09); color: var(--a-ink); }
.auth-tabs button:focus-visible { outline: 2px solid var(--a-gold); outline-offset: 1px; }
/* Parooliväli koos „näita parooli“ nupuga */
.auth-password { position: relative; display: block; }
.auth-password input { width: 100%; padding-right: 48px; }
.auth-eye {
  position: absolute; top: 50%; right: 6px; width: 36px; height: 36px; transform: translateY(-50%);
  display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--a-muted); cursor: pointer;
}
.auth-eye:hover, .auth-eye[aria-pressed="true"] { color: var(--a-ink); }
.auth-form .auth-hint { margin: -2px 0 0; color: var(--a-muted); font-size: 13px; line-height: 1.5; }
.auth-submit { width: 100%; margin-top: 4px; }
