/* =========================================================
   Balo — LOGIN (page-login.php)
   Clean, conflict-free, full day/night support
   ========================================================= */

/* ---------------------------------------------------------
   1) TOKENS (inherit from global zen system)
--------------------------------------------------------- */
:root {
  --login-max: 860px;
  --radius: 18px;
  --gap: clamp(16px, 2.2vw, 24px);

  --text: var(--zen-text, #e9eefb);
  --muted: var(--zen-muted, #9aa6b0);

  --card-bg: var(--zen-card-bg, rgba(10,14,20,.88));
  --card-bd: var(--zen-card-bd, rgba(148,163,184,.08));
  --shadow: var(--zen-shadow, 0 10px 30px rgba(0,0,0,.36));

  --input-bg: color-mix(in srgb, #0b1224 72%, transparent);
  --input-bd: rgba(148,163,184,.22);
  --input-bd-focus: rgba(129,140,248,.65);
}

/* ---------------------------------------------------------
   2) DAY MODE OVERRIDES
--------------------------------------------------------- */
body.balo-day.page-login {
  --text: #0f172a;
  --muted: #475569;

  --card-bg: rgba(255,255,255,.92);
  --card-bd: rgba(15,23,42,.12);
  --shadow: 0 8px 24px rgba(0,0,0,.08);

  --input-bg: rgba(255,255,255,.75);
  --input-bd: rgba(15,23,42,.18);
  --input-bd-focus: rgba(99,102,241,.45);
}

/* ---------------------------------------------------------
   3) LOGO
--------------------------------------------------------- */
.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.balo-logo {
  display: block;
  width: clamp(100px, 12vw, 160px);
  height: auto;
  border-radius: 16px;
}

/* ---------------------------------------------------------
   4) HERO AREA (no backgrounds here)
--------------------------------------------------------- */
.login-hero {
  position: relative;
  text-align: center;
  padding: clamp(48px, 8vw, 96px) 16px clamp(20px, 4vw, 40px);
  isolation: isolate;
}

.login-hero .shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(800px 480px at 20% -6%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(720px 420px at 80% -10%, rgba(255,214,165,.06), transparent 60%);
}

.hero-title {
  color: var(--text);
  font-size: clamp(28px, 5.2vw, 56px);
  line-height: 1.05;
  margin: 12px 0 8px;
  text-shadow: 0 2px 6px rgba(0,0,0,.45);
}

.hero-subtitle {
  color: var(--text);
  opacity: .92;
  font-size: clamp(16px, 2.2vw, 19px);
  max-width: 70ch;
  margin: 0 auto;
}

/* ---------------------------------------------------------
   5) MAIN + CARD
--------------------------------------------------------- */
.login-main {
  padding: clamp(16px, 3.5vw, 32px) 16px clamp(28px, 5vw, 56px);
}

.login-card {
  max-width: var(--login-max);
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.2vw, 26px);
  backdrop-filter: blur(14px);
}

.card-title {
  color: var(--text);
  font-size: clamp(20px, 2.8vw, 26px);
  line-height: 1.2;
  margin: 0 0 10px;
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
}

/* ---------------------------------------------------------
   6) FORM
--------------------------------------------------------- */
.login-form {
  display: grid;
  gap: var(--gap);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--text);
  opacity: .9;
  font-weight: 600;
  font-size: 14px;
}

.field input[type=text],
.field input[type=email],
.field input[type=password] {
  appearance: none;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;

  background: var(--input-bg);
  border: 1px solid var(--input-bd);
  color: var(--text);

  outline: none;
  transition: border-color .15s ease, box-shadow .2s ease;
}

.field input::placeholder {
  color: rgba(233,238,251,.65);
}

/* DAY MODE – inputs */
body.balo-day.page-login .field input {
  color: #0f172a;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(15,23,42,.18);
}

body.balo-day.page-login .field input::placeholder {
  color: rgba(15,23,42,.45);
}

.field input:focus {
  border-color: var(--input-bd-focus);
  box-shadow: 0 0 0 4px rgba(99,102,241,.22);
}

/* Remember/Forgot row */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.remember input {
  accent-color: #818cf8;
  transform: translateY(1px);
}

/* ---------------------------------------------------------
   7) BUTTONS
--------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;

  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;

  border: 1px solid rgba(148,163,184,.22);
  color: #fff;
  text-decoration: none;

  background:
    radial-gradient(60% 140% at 50% 0%, rgba(99,102,241,.20), rgba(99,102,241,0)),
    linear-gradient(180deg, rgba(39,55,110,.92), rgba(20,31,64,.95));

  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(129,140,248,.55);
  box-shadow: 0 0 40px 6px rgba(99,102,241,.25);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(148,163,184,.34);
  color: var(--text);
}

.btn--google {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------
   8) SEPARATOR
--------------------------------------------------------- */
.or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: var(--muted);
}

.or::before,
.or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(148,163,184,.18);
}

/* ---------------------------------------------------------
   9) META & FOOTER
--------------------------------------------------------- */
.meta {
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

.site-footer.login-footer {
  color: var(--muted);
  text-align: center;
  padding: 16px;
  background: transparent;
}

/* ---------------------------------------------------------
   10) REDUCED MOTION
--------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .field input {
    transition: none;
  }
}
