/* CardPulse — Shared Auth Page Styles */

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg-base);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 0 60px rgba(189,0,143,0.12), 0 20px 40px rgba(0,0,0,0.4);
}

/* Top accent bar */
.auth-card::before {
  content: '';
  display: block;
  height: 3px;
  margin: -40px -36px 32px;
  background: linear-gradient(90deg, #bd008f, #8a7dff, #00d4ff);
  border-radius: 16px 16px 0 0;
}

.auth-logo {
  display: block;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(90deg, #ffffff, #ff7cf7, #8a7dff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  margin-bottom: 24px;
}

.auth-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin: 0 0 6px;
}

.auth-sub {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 24px;
}
.auth-sub a { color: var(--accent-cyan); text-decoration: none; }
.auth-sub a:hover { text-decoration: underline; }

.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.form-hint {
  font-size: 11px;
  margin-top: 4px;
  min-height: 14px;
  line-height: 1.4;
}

.form-input {
  width: 100%;
  padding: 10px 13px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--white);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
}
.form-input:focus {
  border-color: var(--accent);
  background: rgba(189,0,143,0.06);
}
.form-input::placeholder { color: var(--text-faint); }
.form-input:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, #bd008f, #8a7dff);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  margin-top: 6px;
  font-family: var(--font-sans);
  letter-spacing: 0.2px;
}
.auth-btn:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.auth-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.auth-forgot {
  display: block;
  text-align: right;
  font-size: 12px;
  color: var(--text-faint);
  text-decoration: none;
  margin-top: -8px;
  margin-bottom: 16px;
  transition: color 0.15s;
}
.auth-forgot:hover { color: var(--accent-cyan); }

.auth-alert {
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.5;
  display: none;
}
.auth-alert.show { display: block; }
.auth-alert--error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #fca5a5;
}
.auth-alert--success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  color: #86efac;
}

.auth-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
  line-height: 1.6;
}
.auth-footer a { color: var(--accent-cyan); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
  .auth-card::before { margin: -28px -20px 24px; }
}
