/* auth.css — standalone auth pages (signin, forgot-password, reset-password) */

/* Full-height centred layout */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-page nav {
  flex-shrink: 0;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

/* The card */
.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-md);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 400px;
  padding: 2.5rem 2.25rem 2.25rem;
}

.auth-card-header {
  margin-bottom: 1.5rem;
}

.auth-card-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.auth-card-sub {
  font-size: var(--text-sm);
  color: var(--ink-3);
  line-height: 1.5;
}

/* Field stack */
.auth-fields {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.9rem;
  gap: 0.5rem;
}

/* Submit button row */
.auth-submit {
  margin-bottom: 1.25rem;
}

/* Secondary links row */
.auth-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--ink-3);
  flex-wrap: wrap;
  text-align: center;
}
.auth-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.auth-links a:hover { color: var(--accent-dark); }

/* Divider */
.auth-divider {
  margin: 1.25rem 0;
  border: none;
  border-top: 1px solid var(--border);
}

/* Alert sits above fields */
.auth-alert {
  margin-bottom: 1.25rem;
}

/* Password strength bar */
.pwd-strength {
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pwd-strength-bars {
  display: flex;
  gap: 3px;
  flex: 1;
}
.pwd-strength-bar {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--paper-3);
  transition: background 0.25s;
}
.pwd-strength-bar.weak   { background: var(--danger); }
.pwd-strength-bar.fair   { background: #f59e0b; }
.pwd-strength-bar.good   { background: #3b82f6; }
.pwd-strength-bar.strong { background: var(--success); }

.pwd-strength-label {
  font-size: 0.72rem;
  color: var(--ink-3);
  white-space: nowrap;
  min-width: 3rem;
  text-align: right;
  transition: color 0.25s;
}
.pwd-strength-label.weak   { color: var(--danger); }
.pwd-strength-label.fair   { color: #d97706; }
.pwd-strength-label.good   { color: #2563eb; }
.pwd-strength-label.strong { color: var(--success); }
