/* auth.css — styles dédiés aux pages auth (login, mfa, reset)
   Chargé uniquement dans auth_base.html — jamais dans base.html
   Palette provisoire — affinement prévu lors de la session polish globale post-1B */

:root {
  --auth-bg-page:       #f5f3ef;
  --auth-bg-card:       #fffcf7;
  --auth-border-card:   #e8e0d4;
  --auth-bg-input:      #f5f0e8;
  --auth-border-input:  #ddd4c0;
  --auth-color-accent:  #c8881a;
  --auth-color-navbar:  #1e2229;
  --auth-color-text:    #1a1510;
  --auth-color-label:   #7a6a50;
  --auth-color-muted:   #a09070;
  --auth-color-disabled:#b0a080;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body.auth-page {
  background-color: var(--auth-bg-page);
  font-family: system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-navbar {
  background-color: var(--auth-color-navbar);
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 10px;
  flex-shrink: 0;
}

.auth-navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.auth-navbar-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background-color: var(--auth-color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-navbar-title {
  font-size: 13px;
  font-weight: 500;
  color: #f0f2f5;
  letter-spacing: 0.01em;
}

.auth-navbar-lang {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.auth-navbar-lang a {
  font-size: 11px;
  color: #6b7280;
  text-decoration: none;
  padding: 4px 8px;
}

.auth-navbar-lang a.active,
.auth-navbar-lang a:hover {
  color: #f0f2f5;
}

.auth-navbar-lang-sep {
  font-size: 11px;
  color: #2e3338;
}

.auth-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card-wrapper {
  width: 100%;
  max-width: 400px;
}

.auth-card {
  background: var(--auth-bg-card);
  border: 1px solid var(--auth-border-card);
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 2px 12px rgba(30, 20, 10, 0.07);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-card-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: var(--auth-color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.auth-card-title {
  font-size: 21px;
  font-weight: 500;
  color: var(--auth-color-text);
  margin: 0 0 4px 0;
}

.auth-card-subtitle {
  font-size: 12px;
  color: var(--auth-color-muted);
  margin: 0;
}

.auth-form-group {
  margin-bottom: 14px;
}

.auth-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--auth-color-label);
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  font-size: 13px;
  padding: 8px 12px;
  background: var(--auth-bg-input);
  border: 1px solid var(--auth-border-input);
  border-radius: 6px;
  color: var(--auth-color-text);
  outline: none;
  transition: border-color 0.15s;
}

.auth-input:focus {
  border-color: var(--auth-color-accent);
  box-shadow: 0 0 0 3px rgba(200, 136, 26, 0.12);
}

.auth-input:disabled {
  background: var(--auth-bg-input);
  color: var(--auth-color-disabled);
  cursor: not-allowed;
}

.auth-input::placeholder {
  color: var(--auth-color-muted);
}

.auth-field-error {
  font-size: 12px;
  color: #791f1f;
  margin-top: 4px;
  display: none;
}

.auth-field-error.visible {
  display: block;
}

.auth-link-right {
  text-align: right;
  margin-bottom: 22px;
}

.auth-link {
  font-size: 12px;
  color: var(--auth-color-accent);
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-btn-primary {
  width: 100%;
  height: 40px;
  background: var(--auth-color-accent);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}

.auth-btn-primary:hover {
  background: #a8720f;
}

.auth-btn-primary:disabled {
  background: #ddd4c0;
  color: var(--auth-color-disabled);
  cursor: not-allowed;
}

.auth-alert {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
}

.auth-alert-error {
  background: #fcebeb;
  color: #791f1f;
}

.auth-alert-success {
  background: #eaf3de;
  color: #27500a;
}

.auth-footer-note {
  text-align: center;
  font-size: 11px;
  color: var(--auth-color-muted);
  margin-top: 16px;
}
