/* index.php — page de connexion (UI only) */
/* Sobre / pro, cohérent ERP/GMAO */

:root{
  /* fallback si variables globales non présentes */
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15,23,42,.12);
  --shadow: 0 14px 40px rgba(15,23,42,.10);
  --accent: #2563eb;
}

.auth-page{
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.auth-bg{
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1100px 520px at 30% 18%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(900px 520px at 80% 30%, rgba(15,23,42,.08), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  pointer-events: none;
}

.auth-shell{
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.auth-card{
  width: min(520px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 18px 18px 14px 18px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 2px 10px 2px;
  border-bottom: 1px solid rgba(15,23,42,.06);
}

.brand-logo{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 8px 22px rgba(15,23,42,.10);
  background: #fff;
}

.brand-title{
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 16px;
  line-height: 1.1;
}

.brand-sub{
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-top: 2px;
}

.auth-head{
  padding: 14px 2px 10px 2px;
}

.auth-head h1{
  margin: 0;
  font-size: 22px;
  letter-spacing: .2px;
}

.auth-head p{
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.auth-form{
  padding: 6px 2px 6px 2px;
  display: grid;
  gap: 12px;
}

.field label{
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 6px;
}

.field input{
  width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
  outline: none;
}

.field input:focus{
  border-color: rgba(37,99,235,.35);
  box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}

.actions{
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.btn-primary{
  border: 0;
  border-radius: 14px;
  padding: 11px 14px;
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(180deg, rgba(37,99,235,1) 0%, rgba(29,78,216,1) 100%);
  box-shadow: 0 10px 24px rgba(37,99,235,.24);
  cursor: pointer;
}

.btn-primary:hover{
  filter: brightness(1.03);
}

.auth-foot{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(15,23,42,.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}


.brand-logo{ transition: transform .18s ease, box-shadow .18s ease; }
.brand-logo:hover{ transform: scale(1.02); }

/* Alerte (erreur connexion) */
.alert{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(239,68,68,.25);
  background: rgba(239,68,68,.07);
  color:#7f1d1d;
  font-weight:800;
  font-size:13px;
  margin: 10px 2px 0 2px;
}
.alert .dot{
  width:10px;
  height:10px;
  border-radius:999px;
  margin-top:4px;
  background:#ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,.10);
}
