/* Pages d'authentification : un bloc blanc centré, minimaliste. Grille de 8 px, rayons de 5 px. */
* { box-sizing: border-box; }

.auth-page {
  min-height: 100vh; margin: 0; padding: 32px 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 15px; line-height: 1.5; color: #475569;
  background: #f8fafc; -webkit-font-smoothing: antialiased;
}
.auth-page a { text-decoration: none; color: #ea580c; font-weight: 600; }
.auth-page a:hover { color: #c2410c; }

.auth-card {
  width: 100%; max-width: 440px; padding: 48px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 5px;
}

.auth-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 32px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: #0f172a !important; }
.auth-logo-img { display: block; width: 150px; height: auto; }

.auth-title { margin: 0 0 8px; font-size: 24px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; color: #0f172a; }
.auth-sub { margin: 0 0 24px; color: #64748b; font-weight: 500; }

.auth-form { display: grid; gap: 8px; }
.auth-label { margin-top: 8px; font-size: 13px; font-weight: 700; line-height: 1; color: #475569; }
.auth-label:first-child { margin-top: 0; }
.auth-input {
  width: 100%; height: 44px; padding: 0 16px;
  font: inherit; font-size: 15px; color: #0f172a;
  background: #fff; border: 1px solid #94a3b8; border-radius: 5px; outline: 0;
}
.auth-input::placeholder { color: #94a3b8; }
.auth-input:focus { border-color: #ea580c; box-shadow: 0 0 0 1px #ea580c; }
.auth-hint { font-size: 13px; color: #64748b; }

.auth-check { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; font-weight: 600; color: #475569; cursor: pointer; }
.auth-check input { width: 16px; height: 16px; accent-color: #ea580c; }

.auth-submit {
  height: 48px; margin-top: 16px; padding: 0 24px; display: flex; align-items: center; justify-content: center;
  font: inherit; font-size: 15px; font-weight: 800; color: #fff !important; background: #ea580c;
  border: 0; border-radius: 5px; cursor: pointer;
}
.auth-submit:hover { background: #c2410c; color: #fff; }
.auth-submit:focus-visible, .auth-page a:focus-visible { outline: 3px solid rgba(234, 88, 12, .4); outline-offset: 2px; }

.auth-links a { display: block; white-space: nowrap; }
.auth-links { display: grid; gap: 8px; margin-top: 24px; padding-top: 24px; border-top: 1px solid #e2e8f0; font-size: 14px; text-align: center; }

.auth-error, .auth-notice { margin-bottom: 24px; padding: 8px 16px; border-radius: 5px; font-size: 13px; font-weight: 600; }
.auth-error { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }
.auth-error ul { margin: 4px 0 0; padding-left: 16px; font-weight: 500; }
.auth-notice { color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; }

.auth-back { font-size: 14px; }

@media (max-width: 480px) { .auth-card { padding: 32px 24px; } }

/* Continuer avec Google */
.auth-or { display: flex; align-items: center; gap: 16px; margin: 16px 0; font-size: 13px; font-weight: 600; color: #64748b; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: #cbd5e1; }
.auth-google-form { margin: 0; }
.auth-google {
  width: 100%; height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 700; color: #0f172a; background: #fff;
  border: 1px solid #cbd5e1; border-radius: 5px; cursor: pointer;
}
.auth-google:hover { background: #f8fafc; }
.auth-google iconify-icon { font-size: 20px; }

/* Page 404 : fond blanc, tout centré, sans carte ni bordure */
.error-page {
  margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  font-family: "Plus Jakarta Sans", sans-serif; color: #0f172a; background: #fff; -webkit-font-smoothing: antialiased;
}
.error-main { width: 100%; max-width: 520px; padding: 32px 24px; box-sizing: border-box; text-align: center; }
.error-illustration { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto 24px; }
.error-title { margin: 0 0 8px; font-size: 26px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.error-text { margin: 0 0 24px; color: #64748b; font-weight: 500; }
.error-links { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.error-links a { font-weight: 700; color: #ea580c; text-decoration: none; }
.error-links a:hover { color: #c2410c; text-decoration: underline; }
.error-links a:focus-visible { outline: 3px solid rgba(234, 88, 12, .4); outline-offset: 2px; }
