/* =========================================================
   LYCÉE HOUPHOUËT-BOIGNY — Écrans de connexion / formulaires isolés
   (connexion, inscription, paiement, code secret...)
   ========================================================= */

:root{
  --green-900:#0E2A1D;
  --green-800:#164B35;
  --green-700:#1C6244;
  --green-100:#E7F0EA;
  --gold-600:#A9791A;
  --gold-500:#C9971F;
  --cream-50:#FCFAF4;
  --cream-100:#F6F1E3;
  --ink-900:#1B231E;
  --ink-500:#657167;
  --border:#E6E1CE;
  --red:#B3261E;
}

*{margin:0;padding:0;box-sizing:border-box;font-family:'Poppins',sans-serif;}

body{
  background:linear-gradient(135deg,var(--green-900),var(--green-800),var(--green-700));
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:24px;
}

.auth-box{
  background:var(--cream-50);
  width:100%;
  max-width:420px;
  padding:34px 28px;
  border-radius:22px;
  box-shadow:0 20px 50px rgba(14,42,29,.35);
  animation:authFadeIn .6s ease;
}

@keyframes authFadeIn{
  from{opacity:0;transform:translateY(20px);}
  to{opacity:1;transform:translateY(0);}
}

.auth-logo{
  width:64px;height:64px;
  border-radius:50%;
  object-fit:cover;
  display:block;
  margin:0 auto 16px;
  box-shadow:0 4px 14px rgba(14,42,29,.18);
}

.auth-box h1{
  text-align:center;
  font-size:22px;
  color:var(--green-900);
  margin-bottom:8px;
}

.auth-sub{
  text-align:center;
  font-size:13.5px;
  color:var(--ink-500);
  margin-bottom:24px;
  line-height:1.6;
}

.auth-box input,
.auth-box select,
.auth-box textarea{
  width:100%;
  padding:14px;
  margin-top:10px;
  border-radius:12px;
  border:1.5px solid var(--border);
  background:#fff;
  font-family:'Poppins',sans-serif;
  font-size:14.5px;
  outline:none;
}

.auth-box input:focus,
.auth-box select:focus,
.auth-box textarea:focus{
  border-color:var(--green-700);
}

.auth-box button,
.auth-box .auth-btn{
  width:100%;
  padding:14px;
  margin-top:18px;
  border:none;
  border-radius:12px;
  background:linear-gradient(135deg,var(--gold-500),var(--gold-600));
  color:var(--green-900);
  font-weight:700;
  font-size:15px;
  cursor:pointer;
  text-align:center;
  text-decoration:none;
  display:block;
  box-shadow:0 8px 20px rgba(201,151,31,.3);
}

.auth-btn-secondary{
  background:var(--green-100) !important;
  color:var(--green-800) !important;
  box-shadow:none !important;
}

.auth-alert{
  background:#FBEAE9;
  color:var(--red);
  padding:12px;
  border-radius:10px;
  margin-top:14px;
  font-size:13.5px;
  text-align:center;
}

.auth-success{
  background:var(--green-100);
  color:var(--green-800);
  padding:16px;
  border-radius:12px;
  margin-top:16px;
  text-align:left;
  font-size:13.5px;
  line-height:1.7;
}

.auth-link{
  display:block;
  text-align:center;
  margin-top:16px;
  font-size:13.5px;
  color:var(--green-800);
  font-weight:600;
  text-decoration:none;
}

.auth-link:hover{text-decoration:underline;}

.auth-back{
  display:block;
  text-align:center;
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--border);
  font-size:13px;
  color:var(--ink-500);
  text-decoration:none;
}
