/* =============================================================================
   CONNEXION.CSS — Styles spécifiques à la page de connexion Y.C. Aligator Film
   ============================================================================= */

   body {
      background: var(--black);
      color: var(--white);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* ─── Turnstile widget dark ─── */
    .cf-turnstile { margin-top: 0.5rem; }

    /* ─── Auth layout ─── */
    .auth-page {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: calc(var(--nav-height) + 3rem) 2rem 5rem;
    }

    .auth-card {
      width: 100%;
      max-width: 440px;
    }

    .auth-eyebrow {
      font-size: 0.6rem;
      font-weight: 700;
      letter-spacing: 0.35em;
      text-transform: uppercase;
      color: rgba(248,248,246,0.3);
      margin-bottom: 1.2rem;
    }

    .auth-title {
      font-size: clamp(1.8rem, 4vw, 2.6rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--white);
      margin-bottom: 0.4rem;
    }

    .auth-sub {
      font-size: 0.88rem;
      color: rgba(248,248,246,0.4);
      margin-bottom: 2.5rem;
      line-height: 1.55;
    }

    /* ─── Form ─── */
    .auth-form {
      display: flex;
      flex-direction: column;
      gap: 1.1rem;
    }

    .af-group {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }

    .af-group label {
      font-size: 0.6rem;
      font-weight: 700;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: rgba(248,248,246,0.4);
    }

    .af-group input {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.9rem;
      background: rgba(248,248,246,0.05);
      border: 1px solid rgba(248,248,246,0.12);
      color: var(--white);
      padding: 0.85rem 1rem;
      outline: none;
      transition: border-color 0.2s, background 0.2s;
      width: 100%;
      -webkit-appearance: none;
      border-radius: 0;
    }

    .af-group input:focus {
      border-color: rgba(248,248,246,0.45);
      background: rgba(248,248,246,0.08);
    }

    .af-group input::placeholder {
      color: rgba(248,248,246,0.2);
    }

    /* ─── Alert ─── */
    .auth-alert {
      padding: 0.85rem 1rem;
      font-size: 0.82rem;
      line-height: 1.55;
      border-left: 2px solid;
    }

    .auth-alert-error {
      background: rgba(180,40,40,0.12);
      border-color: #b42828;
      color: #f4a0a0;
    }

    .auth-alert-success {
      background: rgba(40,140,80,0.12);
      border-color: #288c50;
      color: #88e0aa;
    }

    /* ─── Submit ─── */
    .auth-submit {
      margin-top: 0.4rem;
      background: var(--white);
      color: var(--black);
      border: none;
      padding: 0.95rem 2rem;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      cursor: pointer;
      width: 100%;
      transition: background 0.2s, letter-spacing 0.2s;
    }

    .auth-submit:hover { background: var(--lgrey); letter-spacing: 0.32em; }
    .auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }

    /* ─── Links ─── */
    .auth-links {
      margin-top: 2rem;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      align-items: center;
    }

    .auth-link {
      font-size: 0.78rem;
      color: rgba(248,248,246,0.35);
      transition: color 0.2s;
    }

    .auth-link span {
      border-bottom: 1px solid rgba(248,248,246,0.2);
      padding-bottom: 1px;
      transition: border-color 0.2s, color 0.2s;
    }

    .auth-link:hover { color: rgba(248,248,246,0.7); }
    .auth-link:hover span { border-color: rgba(248,248,246,0.5); }

    .auth-divider {
      width: 100%;
      height: 1px;
      background: rgba(248,248,246,0.08);
      margin: 2rem 0 1.5rem;
    }

    footer { border-top: 1px solid rgba(248,248,246,0.08); }