/* ═══════════════════════════════════════════════════
   GRIFT — @font-face
═══════════════════════════════════════════════════ */
@font-face { font-family: 'Grift'; src: url('fonts/grift-light.otf') format('opentype'), url('fonts/grift-light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Grift'; src: url('fonts/grift-regular.otf') format('opentype'), url('fonts/grift-regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Grift'; src: url('fonts/grift-medium.otf') format('opentype'), url('fonts/grift-medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Grift'; src: url('fonts/grift-semibold.otf') format('opentype'), url('fonts/grift-semibold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Grift'; src: url('fonts/grift-bold.otf') format('opentype'), url('fonts/grift-bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

/* ═══════════════════════════════════════════════════
   LOGIN.CSS — Page de connexion Backoffice
═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0a0a0a;
  --bg2:     #111111;
  --bg3:     #191919;
  --border:  rgba(255,255,255,.08);
  --border2: rgba(255,255,255,.16);
  --white:   #f0f0ee;
  --dim:     rgba(240,240,238,.45);
  --accent:  #d4c5a9;
  --red:     #f87171;
  --font:    'Grift', sans-serif;
  --fontc:   'Grift', sans-serif;
  --r:       8px;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Halo d'ambiance */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212,197,169,.05) 0%, transparent 60%);
}

/* Wrapper */
.l-wrap {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 24px;
}

/* Header */
.l-header {
  display: flex; align-items: center; gap: 14px;
  padding: 0 4px;
}
.l-logo-mark { font-size: 20px; color: var(--accent); flex-shrink: 0; }
.l-logo-text { display: flex; flex-direction: column; gap: 2px; }
.l-logo-name {
  font-family: var(--fontc); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--white);
}
.l-logo-sub {
  font-family: var(--fontc); font-size: 9px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--dim);
}

/* Carte */
.l-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 36px;
}

/* Titre */
.l-title {
  font-family: var(--fontc); font-size: 18px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 6px;
}
.l-subtitle {
  font-size: 12px; color: var(--dim); line-height: 1.65;
  margin-bottom: 4px;
}

/* Formulaire */
.l-form { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.l-field { display: flex; flex-direction: column; gap: 7px; }
.l-field label {
  font-family: var(--fontc); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--dim);
}
.l-label-hint { text-transform: none; letter-spacing: 0; font-size: 9px; }
.l-input-wrap { position: relative; }

/* Inputs */
input[type="text"],
input[type="password"] {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  color: var(--white);
  font-family: var(--font); font-size: 14px; font-weight: 300;
  padding: 12px 44px 12px 16px;
  outline: none;
  transition: border-color .2s, background .2s;
}
input:focus { border-color: var(--accent); background: rgba(255,255,255,.03); }
input::placeholder { color: rgba(240,240,238,.2); }

/* Bouton afficher/masquer mot de passe */
.l-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--dim); width: 22px; height: 22px;
  padding: 0; display: flex; align-items: center; justify-content: center;
  opacity: .4; transition: opacity .2s;
}
.l-eye:hover,
.l-eye.is-visible { opacity: .9; }
.l-eye svg { width: 16px; height: 16px; }

/* Message d'erreur */
.l-error {
  font-size: 12px; color: var(--red);
  min-height: 16px; line-height: 1.5;
}

/* Bouton de soumission */
.l-btn {
  width: 100%;
  padding: 13px 20px;
  background: var(--accent); border: none; border-radius: var(--r);
  color: #0a0a0a;
  font-family: var(--fontc); font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, opacity .2s;
  margin-top: 4px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.l-btn:hover:not(:disabled) { background: #e8d9c0; }
.l-btn:disabled { opacity: .5; cursor: default; }

.l-btn-spin {
  animation: l-spin .8s linear infinite;
  display: inline-block;
}
@keyframes l-spin { to { transform: rotate(360deg); } }

.l-switch {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.l-switch a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.l-switch a:hover { border-color: var(--accent); }
