/* Page de connexion (maquette login-monclub.html). Styles isolés sous .mc-login pour ne pas dépendre de Bootstrap. */
body.authentication-bg:has(.mc-login) { background: #fff; }

.mc-login {
  --accent: #3474b8; --accent-d: #285c94; --ink: #14213d; --muted: #64708a; --line: #dfe4ee; --bg: #fff; --soft: #f4f6fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  color: var(--ink); background: var(--bg); min-height: 100vh;
  display: grid; grid-template-columns: 1fr minmax(420px, 36%);
  font-size: 16px; line-height: normal;
}
.mc-login *, .mc-login *::before, .mc-login *::after { box-sizing: border-box; margin: 0; }

/* Partie gauche : photo + dégradé + informations */
.mc-photo {
  position: relative; background-color: var(--ink); background-size: cover; background-position: center; min-height: 100vh;
}
.mc-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,40,0) 45%, rgba(10,20,40,.75) 100%); }
.mc-caption { position: absolute; left: 48px; right: 48px; bottom: 44px; color: #fff; z-index: 1; }
.mc-caption h2 { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.mc-caption p { opacity: .85; margin-top: 8px; font-size: 15px; }
.mc-wx { display: flex; gap: 22px; margin-top: 22px; font-size: 13px; }
.mc-wx div { display: flex; flex-direction: column; gap: 2px; }
.mc-wx b { font-size: 17px; }
.mc-wx span { opacity: .7; }

/* Partie droite : logo + formulaire */
.mc-panel { display: flex; flex-direction: column; padding: 40px 56px; background: var(--bg); }
.mc-brand { text-align: center; margin-top: auto; }
.mc-brand img { width: 150px; height: auto; }
.mc-form { margin: 28px 0 auto; width: 100%; max-width: 360px; align-self: center; }
.mc-form h1 { font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 8px; color: var(--ink); }
.mc-sub { color: var(--muted); margin-bottom: 32px; font-size: 15px; }
.mc-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.mc-field { position: relative; margin-bottom: 18px; }
.mc-field > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9aa3b5; }
.mc-field input {
  display: block; width: 100%; height: 50px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 44px;
  font: inherit; font-size: 15px; background: var(--soft); color: var(--ink); transition: .15s;
}
.mc-field input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(52,116,184,.15); }
.mc-field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--soft) inset; -webkit-text-fill-color: var(--ink); }
.mc-eye { position: absolute; right: 6px; line-height: 0; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 8px; color: #9aa3b5; cursor: pointer; }
.mc-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin: 4px 0 24px; }
.mc-form .mc-row label { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 0; color: var(--muted); font-size: 14px; }
.mc-row input { accent-color: var(--accent); width: 16px; height: 16px; }
.mc-login a { color: var(--accent); text-decoration: none; font-weight: 500; }
.mc-login a:hover { text-decoration: underline; }
.mc-btn {
  width: 100%; height: 50px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: .15s;
}
.mc-btn:hover { background: var(--accent-d); }
.mc-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(52,116,184,.3); }
.mc-alt { text-align: center; color: var(--muted); font-size: 14px; margin-top: 24px; }
.mc-alert { border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 20px; }
.mc-alert-error { background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }
.mc-alert-success { background: #e8f5ee; color: #1e6b45; border: 1px solid #bfe3cf; }
.mc-foot { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; margin-top: 32px; font-size: 12px; color: #9aa3b5; }
.mc-login .mc-foot .mc-mc { color: inherit; font-weight: 400; }

/* Lien retour (reset password) */
.mc-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.mc-back:hover { color: var(--accent); text-decoration: none; }

/* Bouton secondaire ("ghost") */
.mc-btn.mc-ghost { background: var(--soft); color: var(--ink); border: 1.5px solid var(--line); text-decoration: none; }
.mc-btn.mc-ghost:hover { background: #e9edf5; }

/* Pictogramme de confirmation (email envoyé) */
.mc-check { width: 56px; height: 56px; border-radius: 16px; background: rgba(52,116,184,.12); color: var(--accent); display: grid; place-items: center; margin-bottom: 20px; }

/* Sélection de profil */
.mc-hello { color: var(--accent); font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.mc-roles { display: flex; flex-direction: column; gap: 12px; }
.mc-role {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 14px;
  background: #fff; color: var(--ink); text-decoration: none; font-weight: 400; transition: .15s; width: 100%; text-align: left; font: inherit;
}
.mc-role:hover, .mc-role:focus-visible { border-color: var(--accent); box-shadow: 0 6px 20px rgba(52,116,184,.14); transform: translateY(-1px); text-decoration: none; outline: none; }
.mc-role-ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(52,116,184,.1); color: var(--accent); display: grid; place-items: center; font-size: 1.3rem; }
.mc-role-tx { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.mc-role-tx b { font-size: 16px; }
.mc-role-tx small { color: var(--muted); font-size: 13px; }
.mc-role-chev { color: #b4bccb; transition: .15s; }
.mc-role:hover .mc-role-chev { color: var(--accent); transform: translateX(3px); }

@media (max-width: 860px) {
  .mc-login { grid-template-columns: 1fr; }
  .mc-photo { min-height: 260px; }
  .mc-caption { left: 20px; right: 20px; bottom: 20px; }
  .mc-caption h2 { font-size: 26px; }
  .mc-wx { display: none; }
  .mc-panel { padding: 28px 20px; }
  .mc-brand img { width: 110px; }
  .mc-form { margin: 32px auto; }
}
