/* =====================================================================
   auth.css - Styles des pages login.html / register.html / reset-password.html ---------------- sur base Style.css
   ===================================================================== */

.auth-shell {
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(6px);
}

.auth-shell h1 {
  margin: 0 0 4px;
  font-size: 1.4rem;
}

.auth-shell p.auth-subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.auth-field label {
  font-size: 0.78rem;
  color: var(--muted);
}

.auth-field input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  outline: none;
}

.auth-field input:focus {
  border-color: var(--line-strong);
}

.auth-submit {
  width: 100%;
  padding: 11px;
  margin-top: 8px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-message {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.auth-message--success {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}

.auth-message--error {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

.auth-message--info {
  background: rgba(74, 163, 255, 0.15);
  color: var(--primary);
}

.auth-switch {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.auth-switch a {
  color: var(--primary);
  text-decoration: none;
}

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