/* Karify — Auth UI (sign-in modal + account panel). Uses shared tokens. */

#btn-auth.is-signed-in {
  border-color: var(--border-bright);
  color: var(--accent);
}

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 20, 0.66);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.auth-modal-backdrop.open { display: flex; }

.auth-modal {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--navy-mid);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-drawer);
  padding: 28px 24px 24px;
  animation: authPop .22s var(--ease-out) both;
}
@keyframes authPop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.auth-modal-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none; border: none;
  color: var(--text-dim);
  font-size: 26px; line-height: 1;
  cursor: pointer; padding: 4px 8px;
}
.auth-modal-close:hover { color: var(--text); }

.auth-modal-title { font-size: var(--text-lg); font-weight: 600; color: var(--text); margin-bottom: 6px; }
.auth-modal-sub, .auth-account-note { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.auth-account-email { font-family: var(--font-mono); font-size: var(--text-base); color: var(--accent); margin: 4px 0 8px; word-break: break-all; }

.auth-btn-block { width: 100%; justify-content: center; margin-top: 10px; }

.auth-google-btn {
  background: var(--text);
  color: var(--navy);
  font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.auth-google-btn:hover { background: #fff; }
.auth-google-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy); color: var(--text);
  font-weight: 700; font-size: 12px;
}

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 14px;
  color: var(--text-dim); font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: .1em;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.auth-email-input {
  width: 100%;
  background: var(--navy);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  padding: 12px 14px;
  outline: none;
}
.auth-email-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,195,247,0.1); }

.auth-status { font-size: var(--text-sm); color: var(--text-muted); margin-top: 12px; min-height: 18px; line-height: 1.4; }
.auth-status--error { color: var(--negative); }
