/* ══════════════════════════════════════════
   C&J English Training — Page de connexion
   login.css
   ══════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:       #1B2A4A;
  --crimson:    #8B1C2E;
  --white:      #FAFAF8;
  --off-white:  #F4F2EE;
  --light-gray: #E8E5DF;
  --mid-gray:   #9A9590;
  --dark:       #1A1916;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'DM Sans', sans-serif;
}

body {
  font-family: var(--sans);
  background: var(--off-white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Fond avec motif léger ── */
.page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(27,42,74,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139,28,46,0.03) 0%, transparent 50%);
}

/* ── Barre colorée en haut de la card ── */
.top-bar {
  display: flex;
  width: 100%;
  max-width: 460px;
}

.top-bar-navy {
  flex: 1;
  height: 5px;
  background: var(--navy);
}

.top-bar-crimson {
  width: 72px;
  height: 5px;
  background: #B8860B;
}

/* ── Card principale ── */
.card {
  background: var(--white);
  width: 100%;
  max-width: 460px;
  padding: 2.8rem 2.8rem 2.2rem;
  border: 1px solid var(--light-gray);
  border-top: none;
  animation: fadeUp 0.6s ease both;
}

/* ── Logo ── */
.logo-wrap {
  text-align: center;
  margin-bottom: 1.2rem;
}

.logo-img {
  height: 68px;
  width: auto;
  display: inline-block;
}

/* ── Tagline ── */
.tagline {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 1.8rem;
}

/* ── Diviseur rouge ── */
.divider-line {
  width: 36px;
  height: 2px;
  background: var(--crimson);
  margin: 0 auto 2rem;
}

/* ── Onglets ── */
.tabs {
  display: flex;
  border-bottom: 1.5px solid var(--light-gray);
  margin-bottom: 2rem;
}

.tab-btn {
  flex: 1;
  padding: 11px 0;
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.tab-btn:hover:not(.active) {
  color: var(--dark);
}

/* ── Formulaire ── */
.form-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.form-input {
  border: 1px solid var(--light-gray);
  border-radius: 2px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: #C5C2BB;
}

.form-input:focus {
  border-color: var(--navy);
}

/* ── Mot de passe oublié ── */
.forgot {
  align-self: flex-end;
  font-size: 11px;
  color: var(--mid-gray);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
  margin-top: 2px;
}

.forgot:hover {
  color: var(--navy);
}

/* ── Bouton principal ── */
.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s;
  margin-top: 6px;
  margin-bottom: 1.4rem;
}

.btn-primary:hover {
  background: var(--crimson);
  transform: translateY(-1px);
}

/* ── Séparateur OU ── */
.or-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.2rem;
}

.or-line {
  flex: 1;
  height: 1px;
  background: var(--light-gray);
}

.or-text {
  font-size: 11px;
  color: var(--mid-gray);
  letter-spacing: 0.06em;
}

/* ── Bouton Google ── */
.btn-google {
  width: 100%;
  padding: 12px;
  background: var(--white);
  color: var(--dark);
  border: 1px solid var(--light-gray);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: border-color 0.2s, background 0.2s;
}

.btn-google:hover {
  border-color: var(--navy);
  background: var(--off-white);
}

.google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Lien invité ── */
.guest-wrap {
  text-align: center;
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--light-gray);
}

.btn-guest {
  display: block;
  width: 100%;
  padding: 13px;
  background: transparent;
  border: 1.5px solid var(--navy);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
}

.btn-guest:hover {
  background: var(--navy);
  color: white;
}

/* ── Footer ── */
.splash-footer {
  margin-top: 1.8rem;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mid-gray);
  text-align: center;
}

/* ── Animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 500px) {
  .page { padding: 1.2rem 0.8rem; }
  .card {
    padding: 1.8rem 1.2rem 1.5rem;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }
  .top-bar { max-width: 100%; }
  .logo-img { height: 56px; }
  .welcome-title { font-size: 17px; }
  .tagline { font-size: 10px; }
  .tab-btn { font-size: 11px; padding: 10px 0; }
  .form-input { font-size: 16px; /* prevents iOS zoom */ }
  .btn-primary { padding: 15px; font-size: 12px; }
  .btn-google { font-size: 12px; padding: 11px; }
  .btn-guest { font-size: 11px; padding: 12px; }
}