/* Auth pages — signup, login, verification */

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
}

.auth-card--centered {
  text-align: center;
}

.auth-header {
  margin-bottom: 28px;
}

.auth-header h1 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

.auth-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 20px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.field-group input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 14px;
  transition: border-color 0.15s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.field-group input:focus {
  border-color: var(--accent);
}

.field-group input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

/* Password hints */
.pw-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  min-height: 22px;
}

.pw-hint {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 500;
}

.pw-hint.ok {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.pw-hint.fail {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
}

/* Submit button */
.btn-auth {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 12px;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 4px;
}

.btn-auth:hover {
  opacity: 0.88;
}

.btn-auth--inline {
  display: inline-block;
  text-decoration: none;
  margin-top: 20px;
  padding: 12px 28px;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

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

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

/* Success state in signup */
.auth-success-state {
  text-align: center;
}

.auth-success-state h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0 8px;
}

.auth-success-state p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 10px;
}

.auth-hint {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.7;
}

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

/* Icon circles for verified/error states */
.auth-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.auth-icon--check {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.auth-icon--warn {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

/* verified.ejs text when centered */
.auth-card--centered h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
}

.auth-card--centered p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

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