/* ============================================================
   Ledger — Auth enhancement layer
   Google sign-in · password eye toggle · forgot/reset password
   Styling intentionally reuses the app's existing CSS variables
   (--navy, --ink, --line, --mint-deep, --radius-sm, etc.) so it
   matches the base build. Loaded via index.html after the app.
   ============================================================ */

/* ---- "or" divider between email form and Google ---- */
.le-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--muted-2, #94a3b8);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
}
.le-divider::before,
.le-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line, #e7eaf0);
}

/* ---- Google button (reuses .btn base from the app) ---- */
.btn-google {
  width: 100%;
  background: #fff;
  color: var(--ink, #0f172a);
  border: 1.5px solid var(--line, #e7eaf0) !important;
  gap: 10px;
  cursor: pointer;
}
.btn-google:hover { background: var(--surface-2, #fafbfd); }
.btn-google:disabled { opacity: .6; cursor: default; }
.btn-google svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---- Forgot-password link ---- */
.le-forgot {
  display: block;
  margin: -8px 0 6px;
  text-align: right;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mint-deep, #0d9488);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.le-forgot:hover { text-decoration: underline; }
.le-forgot[hidden] { display: none; }

/* ---- Inline reset-request panel ---- */
.le-reset {
  margin: 4px 0 12px;
  padding: 13px;
  border: 1px solid var(--line, #e7eaf0);
  border-radius: var(--radius-sm, 11px);
  background: var(--surface-2, #fafbfd);
}
.le-reset[hidden] { display: none; }
.le-reset p {
  margin: 0 0 9px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft, #334155);
}
.le-reset .le-row { display: flex; gap: 8px; }
.le-reset input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1.5px solid var(--line, #e7eaf0);
  border-radius: var(--radius-sm, 11px);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--ink, #0f172a);
}
.le-reset input:focus {
  outline: none;
  border-color: var(--mint-deep, #0d9488);
  box-shadow: 0 0 0 4px #0d94881f;
}
.le-reset .btn { padding: 10px 14px; white-space: nowrap; }

.le-msg { margin: 8px 0 0; font-size: 12.5px; line-height: 1.4; }
.le-msg[hidden] { display: none; }
.le-msg.ok  { color: var(--good, #16a34a); }
.le-msg.err { color: var(--crit, #dc2626); }

/* ---- Password eye toggle ---- */
.le-pass-wrap { position: relative; }
.le-pass-wrap > input { padding-right: 42px !important; }
.le-eye {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted, #64748b);
}
.le-eye:hover { color: var(--ink-soft, #334155); background: rgba(15,23,42,.05); }
.le-eye svg { width: 19px; height: 19px; }

/* ---- Full-screen recovery overlay (set new password) ---- */
.le-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: var(--navy, #0b1220);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
}
.le-overlay[hidden] { display: none; }
.le-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface, #fff);
  border-radius: var(--radius, 16px);
  box-shadow: var(--shadow-lg, 0 18px 50px rgba(15,23,42,.14));
  padding: 32px 30px;
}
.le-card h2 {
  font-family: var(--display, "Space Grotesk", sans-serif);
  margin: 0 0 6px;
  color: var(--ink, #0f172a);
  font-size: 22px;
  font-weight: 700;
}
.le-card .le-sub {
  margin: 0 0 22px;
  color: var(--muted, #64748b);
  font-size: 14px;
  line-height: 1.5;
}
.le-card .field { margin-bottom: 15px; }
.le-card .field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft, #334155);
  margin-bottom: 7px;
}
.le-card .btn-block { width: 100%; margin-top: 4px; }
