/* ============================================================
   CORFLY — Connexion client
   Palette claire cohérente avec l'espace fondatrice
   ============================================================ */

/* ----------------------------------------------
   VARIABLES
---------------------------------------------- */
:root {
  --blue-dark:  #0d1b2a;
  --gold:       #b07e2f;
  --gold-light: #c99a4a;
  --gold-dim:   rgba(176, 126, 47, 0.12);
  --cream:      #f2efea;
  --cream-mid:  #faf9f7;
  --white:      #ffffff;
  --text-dark:  #111111;
  --text-mid:   #444444;
  --text-muted: #777777;
  --border:     #e8e4de;
  --shadow:     0 2px 12px rgba(0,0,0,0.06);
}

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

body {
  font-family: 'League Spartan', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ----------------------------------------------
   SECTION CONNEXION
---------------------------------------------- */
.connexion-section {
  flex: 1;
  background: var(--cream);
  padding: 6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.connexion-box {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  padding: 3rem 2.8rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}

/* Trait doré en haut — cohérent avec les cards de l'index */
.connexion-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
}

.connexion-title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.4rem;
  letter-spacing: -0.3px;
}

.connexion-subtitle {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.connexion-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.connexion-form label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  margin-top: 1rem;
}

.connexion-form label:first-of-type {
  margin-top: 0;
}

.connexion-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #f7f5f2;
  border: 1px solid var(--border);
  color: var(--text-dark);
  font-size: 1rem;
  font-family: 'League Spartan', sans-serif;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.connexion-form input:focus {
  border-color: var(--gold);
  background: var(--white);
}

.connexion-form input::placeholder {
  color: var(--text-muted);
}

.connexion-btn {
  width: 100%;
  margin-top: 1.8rem;
  padding: 1rem;
  background: var(--gold);
  color: var(--white);
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'League Spartan', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
}

.connexion-btn:hover { background: var(--gold-light); }

.connexion-help {
  text-align: center;
  margin-top: 1.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.connexion-help a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.connexion-help a:hover { color: var(--gold-light); }

/* ----------------------------------------------
   FOOTER
---------------------------------------------- */
.corfly-footer {
  background: var(--blue-dark);
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* ----------------------------------------------
   RESPONSIVE
---------------------------------------------- */
@media (max-width: 768px) {
  .connexion-section {
    padding: 3rem 1.2rem;
    align-items: flex-start;
  }

  .connexion-box {
    padding: 2.2rem 1.6rem;
  }

  .connexion-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 400px) {
  .connexion-box {
    padding: 1.8rem 1.2rem;
  }

  .connexion-title {
    font-size: 1.4rem;
  }
}