/*
 * dashboard/assets/auth.css — login / reset page styling (AUTH_CONTRACT Track B).
 *
 * The /login and /auth/reset pages are plain Flask HTML (not Dash components),
 * so they cannot rely on Dash's layout chrome. They DO get the shared Enspi
 * tokens: Dash auto-serves everything under assets/, and these pages <link>
 * theme.css (for the :root custom properties + font import) then this file for
 * the auth-specific card. Tokens (--primary, --accent, --font-*) are defined in
 * theme.css — do not redefine them here; use them so the two stay in sync.
 */

.auth-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Dark-green field, echoing the Enspi near-black-green primary. */
  background:
    radial-gradient(1200px 600px at 50% -10%, #023a12 0%, transparent 60%),
    var(--primary);
  font-family: var(--font-sans);
  color: #e8f5ea;
  padding: 24px;
  box-sizing: border-box;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #04240b;
  border: 1px solid rgba(163, 246, 156, 0.16);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  padding: 40px 36px;
  box-sizing: border-box;
}

.auth-eyebrow {
  font-family: var(--font-headline);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}

.auth-title {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 4px;
}

.auth-sub {
  font-size: 13px;
  color: rgba(232, 245, 234, 0.6);
  margin: 0 0 28px;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(232, 245, 234, 0.8);
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(163, 246, 156, 0.2);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s var(--ease-apple);
}

.auth-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(83, 162, 82, 0.25);
}

.auth-btn {
  width: 100%;
  padding: 12px 16px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--primary);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s var(--ease-apple);
}

.auth-btn:hover {
  background: var(--primary-light);
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.auth-links {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
}

.auth-links a {
  color: var(--accent);
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-error {
  display: none;
  margin: 0 0 18px;
  padding: 10px 13px;
  font-size: 13px;
  color: #ffd9d6;
  background: rgba(186, 26, 26, 0.18);
  border: 1px solid rgba(186, 26, 26, 0.4);
  border-radius: var(--radius-md);
}

.auth-error.show {
  display: block;
}

.auth-note {
  display: none;
  margin: 18px 0 0;
  padding: 10px 13px;
  font-size: 13px;
  color: #dcfce7;
  background: rgba(83, 162, 82, 0.16);
  border: 1px solid rgba(83, 162, 82, 0.4);
  border-radius: var(--radius-md);
}

.auth-note.show {
  display: block;
}
