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

    :root {
      --blue:       #1a6fb5;
      --blue-dark:  #134f85;
      --blue-light: #e8f2fb;
      --green:      #17a589;
      --green-light:#e6f7f4;
      --dark:       #1a1f2e;
      --gray:       #64748b;
      --gray-light: #f1f5f9;
      --white:      #ffffff;
      --border:     #e2e8f0;
      --radius:     12px;
    }

    html, body {
      height: 100%;
      font-family: 'Inter', system-ui, sans-serif;
      color: var(--dark);
      background: var(--gray-light);
      line-height: 1.6;
    }

    body {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    /* ── HEADER ───────────────────────────────────────────── */
    .login-header {
      padding: 20px 24px;
      background: var(--white);
      border-bottom: 1px solid var(--border);
    }
    .logo {
      font-size: clamp(20px, 2.2vw, 24px);
      font-weight: 800;
      color: var(--blue);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 10px;
      line-height: 1;
      letter-spacing: -0.02em;
    }
    .logo span { color: var(--dark); }

    /* ── MAIN ─────────────────────────────────────────────── */
    main {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 40px 24px;
    }

    .login-wrap {
      width: 100%;
      max-width: 440px;
    }

    .login-card {
      background: var(--white);
      border-radius: 20px;
      border: 1px solid var(--border);
      box-shadow: 0 8px 40px rgba(26,111,181,.10);
      padding: 40px 40px 36px;
    }

    .login-badge {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      background: var(--blue-light);
      color: var(--blue);
      font-size: 12px;
      font-weight: 700;
      padding: 5px 14px;
      border-radius: 50px;
      text-transform: uppercase;
      letter-spacing: .5px;
      margin-bottom: 20px;
    }

    .login-title {
      font-size: 24px;
      font-weight: 800;
      color: var(--dark);
      margin-bottom: 6px;
    }

    .login-sub {
      font-size: 14px;
      color: var(--gray);
      margin-bottom: 32px;
      line-height: 1.6;
    }

    /* ── FORM ─────────────────────────────────────────────── */
    .form-group {
      margin-bottom: 18px;
    }

    .form-label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: var(--dark);
      margin-bottom: 7px;
    }

    .form-input {
      width: 100%;
      padding: 12px 16px;
      border: 1.5px solid var(--border);
      border-radius: var(--radius);
      font-size: 15px;
      font-family: inherit;
      color: var(--dark);
      background: var(--white);
      transition: border-color .2s, box-shadow .2s;
      outline: none;
    }
    .form-input:focus {
      border-color: var(--blue);
      box-shadow: 0 0 0 3px rgba(26,111,181,.12);
    }
    .form-input::placeholder { color: #94a3b8; }

    .password-wrap {
      position: relative;
    }
    .toggle-pw {
      position: absolute;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      cursor: pointer;
      color: var(--gray);
      font-size: 16px;
      padding: 2px;
      line-height: 1;
    }
    .toggle-pw:hover { color: var(--blue); }

    .form-forgot {
      display: block;
      text-align: right;
      font-size: 12px;
      color: var(--blue);
      text-decoration: none;
      margin-top: 6px;
      font-weight: 500;
    }
    .form-forgot:hover { text-decoration: underline; }

    /* Lien « oublié » en <button> : même rendu, sans navigation href="#" */
    button.form-forgot {
      width: 100%;
      background: none;
      border: none;
      padding: 0;
      font: inherit;
      cursor: pointer;
      text-align: right;
    }

    .btn-login {
      width: 100%;
      padding: 14px;
      background: var(--blue);
      color: var(--white);
      border: none;
      border-radius: 50px;
      font-size: 15px;
      font-weight: 700;
      font-family: inherit;
      cursor: pointer;
      transition: all .25s;
      box-shadow: 0 4px 16px rgba(26,111,181,.35);
      margin-top: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    .btn-login:hover:not(:disabled) {
      background: var(--blue-dark);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(26,111,181,.45);
    }
    .btn-login:disabled {
      opacity: .65;
      cursor: not-allowed;
      transform: none;
    }

    /* Spinner */
    .spinner {
      width: 18px; height: 18px;
      border: 2px solid rgba(255,255,255,.4);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin .7s linear infinite;
      display: none;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* ── MESSAGES ─────────────────────────────────────────── */
    .alert {
      padding: 12px 16px;
      border-radius: var(--radius);
      font-size: 13px;
      font-weight: 500;
      margin-bottom: 20px;
      display: none;
      line-height: 1.5;
    }
    .alert-error {
      background: #fef2f2;
      color: #dc2626;
      border: 1px solid #fecaca;
    }
    .alert-success {
      background: var(--green-light);
      color: #0f766e;
      border: 1px solid #99f6e4;
    }
    .alert.show { display: block; }

    /* ── RESET PASSWORD VIEW ──────────────────────────────── */
    #reset-view { display: none; }

    /* ── FOOTER ───────────────────────────────────────────── */
    .login-footer {
      padding: 16px 24px;
      text-align: center;
      font-size: 12px;
      color: var(--gray);
    }
    .login-footer a {
      color: var(--gray);
      text-decoration: none;
    }
    .login-footer a:hover { color: var(--blue); }

    /* ── REASSURANCE ──────────────────────────────────────── */
    .reassurance {
      margin-top: 20px;
      display: flex;
      flex-direction: column;
      gap: 9px;
    }
    .reassurance-item {
      display: flex;
      align-items: center;
      gap: 9px;
      font-size: 12px;
      color: var(--gray);
    }
    .reassurance-icon {
      width: 22px; height: 22px;
      border-radius: 50%;
      background: var(--green-light);
      color: var(--green);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      flex-shrink: 0;
      font-weight: 700;
    }

    @media (max-width: 480px) {
      .login-card { padding: 28px 22px 24px; }
    }

/* HelpE — bouton « Ma formation » (barre de navigation + menus mobiles) */
.helpe-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

a.btn-helpe-formation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.2;
  color: #fff !important;
  background: #17a589;
  border: none;
  border-radius: 50px;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(23, 165, 137, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

a.btn-helpe-formation:hover {
  background: #139a7a;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(23, 165, 137, 0.45);
}

.mobile-menu a.btn-helpe-formation {
  width: 100%;
  margin-top: 8px;
  box-sizing: border-box;
}

/* Barres internes (formation / espace membre / démo) */
a.btn-helpe-formation--compact {
  padding: 7px 16px;
  font-size: 13px;
  box-shadow: 0 3px 12px rgba(23, 165, 137, 0.28);
}

/* Page login : entête avec bouton site */
.login-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.login-header-inner .logo {
  flex-shrink: 0;
}
