/* =============================================
   ADMIN — LOGIN
   Fichier isolé dans /admin, n'affecte jamais
   le CSS du site public (css/style.css)
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #1428A0;
  --blue-dark:  #0b1f7a;
  --blue-light: #2f4bd6;
  --green:      #25D366;
  --green-dark: #1ebe5d;
  --ink:        #10142e;
  --gray-text:  #6b7290;
  --border:     #e6e8f5;
  --danger:     #e0334f;
  --danger-bg:  #fdecef;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #ffffff;
  color: var(--ink);
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

/* =============== PANNEAU DE MARQUE =============== */
.login-brand {
  position: relative;
  background: linear-gradient(150deg, var(--blue-dark) 0%, var(--blue) 55%, var(--blue-light) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 60px;
  overflow: hidden;
}

.login-brand-inner { position: relative; z-index: 2; max-width: 420px; }

.login-logo {
  height: 34px;
  filter: brightness(0) invert(1);
  margin-bottom: 40px;
}

.login-brand h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -.3px;
}

.login-brand p {
  font-size: 15px;
  line-height: 1.7;
  opacity: .82;
  margin-bottom: 36px;
}

.login-brand-points { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.login-brand-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  opacity: .92;
}
.login-brand-points .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(37,211,102,.18);
  flex-shrink: 0;
}

.login-brand-glow {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,211,102,.22) 0%, transparent 70%);
  bottom: -220px;
  left: -160px;
  z-index: 1;
}

/* =============== PANNEAU FORMULAIRE =============== */
.login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #ffffff;
}

.login-card { width: 100%; max-width: 380px; }

.login-card-head { margin-bottom: 28px; }
.login-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.login-card-head h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 6px; }
.login-card-head p { font-size: 14px; color: var(--gray-text); }

.login-alert {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(224,51,79,.25);
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.login-field { display: block; margin-bottom: 18px; }
.login-field span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fbfbfe;
  transition: border-color .2s, box-shadow .2s;
}
.login-input-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(20,40,160,.1);
  background: #fff;
}
.login-input-wrap svg {
  width: 18px; height: 18px;
  color: var(--gray-text);
  margin-left: 14px;
  flex-shrink: 0;
}
.login-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14.5px;
  padding: 13px 12px;
  color: var(--ink);
  font-family: inherit;
}
.login-toggle-pass {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--gray-text);
  display: flex;
  align-items: center;
  padding: 0 14px;
}
.login-toggle-pass svg { width: 18px; height: 18px; }
.login-toggle-pass:hover { color: var(--blue); }

.login-row { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.login-remember { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-text); cursor: pointer; }
.login-remember input { accent-color: var(--blue); width: 15px; height: 15px; }

.login-submit {
  width: 100%;
  position: relative;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 8px 20px rgba(20,40,160,.28);
}
.login-submit:hover { background: var(--blue-light); transform: translateY(-1px); }
.login-submit:active { transform: translateY(0); }

.btn-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  position: absolute;
  right: 16px; top: 50%;
  margin-top: -8px;
  animation: spin .7s linear infinite;
}
.login-submit.loading .btn-label { opacity: .6; }
.login-submit.loading .btn-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.login-back {
  display: block;
  text-align: center;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--gray-text);
  text-decoration: none;
}
.login-back:hover { color: var(--blue); }

/* =============== RESPONSIVE =============== */
@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-form-side { padding: 60px 24px; }
}
