/* ===== AUTH SCREEN ===== */
#auth-overlay {
  background: var(--paper2);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
#auth-overlay.show { display: flex; }

.auth-card {
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: 16px;
  padding: 36px 32px;
  width: 380px;
  max-width: 96vw;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.auth-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  line-height: 1;
}
.auth-logo span { font-style: normal; }

/* Lighthold wordmark spectrum — warm "light", cool "hold" */
.lh-wordmark {
  font-family: 'DM Serif Display', serif;
  letter-spacing: -0.02em;
  line-height: 1;
}
.lh-l  { color: #FFD600; }
.lh-i  { color: #FFB300; }
.lh-g  { color: #FF8C00; }
.lh-h  { color: #FF5722; }
.lh-t  { color: #F44336; }
.lh-o  { color: #9C27B0; }
.lh-l2 { color: #7B1FA2; }
.lh-d  { color: #3F51B5; }
.lh-d2 { color: #1E88E5; }

.auth-logo .lh-l  { color: #FFD600; }
.auth-logo .lh-i  { color: #FFB300; }
.auth-logo .lh-g  { color: #FF8C00; }
.auth-logo .lh-h  { color: #FF5722; }
.auth-logo .lh-t  { color: #F44336; }
.auth-logo .lh-o  { color: #9C27B0; }
.auth-logo .lh-l2 { color: #7B1FA2; }
.auth-logo .lh-d  { color: #3F51B5; }
.auth-logo .lh-d2 { color: #1E88E5; }

.auth-tagline {
  font-size: 13px;
  color: var(--ink3);
  margin-bottom: 28px;
}

.auth-field {
  margin-bottom: 16px;
}
.auth-label {
  display: block;
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 6px;
}
.auth-input {
  width: 100%;
  background: var(--paper2);
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.auth-input:focus { border-color: var(--accent); }

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-wrap .auth-input,
.auth-input-wrap .s-input {
  padding-right: 40px;
}
.auth-eye {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink3);
  padding: 2px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: color 0.15s;
}
.auth-eye:hover { color: var(--ink3); }
.auth-eye.active { color: var(--accent2); }

.auth-forgot-row {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
}
.auth-forgot-link {
  font-size: 11px;
  color: var(--ink3);
  cursor: pointer;
  transition: color 0.15s;
}
.auth-forgot-link:hover { color: var(--accent2); }
.auth-hint {
  font-size: 11px;
  color: var(--ink3);
  margin-top: 5px;
}

.auth-remember {
  margin-bottom: 14px;
}
.auth-remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink3);
  cursor: pointer;
  user-select: none;
}
.auth-remember-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.auth-error {
  font-size: 13px;
  color: var(--red);
  min-height: 18px;
  margin-bottom: 12px;
}

.auth-btn {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  border: none;
  border-radius: 9px;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-bottom: 12px;
}
.auth-btn:hover    { opacity: 0.87; }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-note {
  font-size: 12px;
  color: var(--ink3);
  text-align: center;
  line-height: 1.5;
}

/* ── Google sign-in button ───────────────────────────────────────────────────*/
.auth-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 0;
  color: var(--ink3); font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--rule);
}
.auth-google-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 16px;
  background: var(--paper2);
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.auth-google-btn:hover {
  background: var(--paper3);
  border-color: var(--ink3);
}
