/* ═══════════════════════════════════════════════════════════
   connexion.css — L'Art-Scène
   Page de connexion unique (membre + admin)
   Thème noir / doré · œil intégré (option 2)
   ═══════════════════════════════════════════════════════════ */

.cx-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 24px;
  box-sizing: border-box;
}

.cx-wrap {
  width: 100%;
  max-width: 380px;
}

.cx-card {
  background: #0d0d0d;
  border: 0.5px solid rgba(201,168,76,0.22);
  border-radius: 8px;
  overflow: hidden;
}

/* ── Header : logo + titre + sous-titre, séparé par une barre dorée ── */
.cx-header {
  background: #000;
  padding: 34px 32px 22px;
  text-align: center;
  border-bottom: 2px solid #c9a84c;
}
.cx-header-logo {
  height: 52px;
  width: auto;
  display: block;
  margin: 0 auto 16px;
}

/* ── Corps du formulaire ── */
.cx-body-form {
  padding: 30px 32px 34px;
}

.cx-logo {
  text-align: center;
  font-family: Georgia, serif;
  font-size: 22px;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.cx-logo span { color: #c9a84c; }

.cx-eyebrow {
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.6);
  margin-bottom: 0;
}

.cx-title {
  text-align: center;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 300;
  color: #fff;
  margin: 0 0 30px;
}

/* ── Message d'erreur ── */
.cx-error {
  font-size: 12px;
  color: #e88;
  background: rgba(224,96,96,0.08);
  border: 1px solid rgba(224,96,96,0.25);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ── Formulaire ── */
.cx-form { text-align: left; }

.cx-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 7px;
}

.cx-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  padding: 0 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  margin-bottom: 18px;
  transition: border-color 0.2s;
}
.cx-input:focus { border-color: rgba(201,168,76,0.5); }

.cx-input::placeholder {
  color: rgba(255,255,255,0.28);
  opacity: 1;
}
.cx-input:focus::placeholder { color: rgba(255,255,255,0.18); }

/* ── Bouton Accéder ── */
.cx-submit {
  display: block;
  width: 100%;
  padding: 13px 24px;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.45);
  border-radius: 3px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.9);
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.cx-submit:hover {
  background: #c9a84c;
  color: #000;
  border-color: #c9a84c;
}

/* ── Liens ── */
.cx-links {
  margin-top: 18px;
  text-align: center;
  font-size: 11px;
}
.cx-links a {
  color: rgba(201,168,76,0.7);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.15s;
}
.cx-links a:hover { color: #c9a84c; }
.cx-sep { color: rgba(255,255,255,0.2); margin: 0 8px; }

/* ═══════════════════════════════════════════════════════════
   Bouton œil (option 2 : séparateur + zone dédiée)
   Icône native du navigateur masquée
   ═══════════════════════════════════════════════════════════ */

.pw-wrap .cx-input::-webkit-credentials-auto-fill-button,
.pw-wrap .cx-input::-webkit-contacts-auto-fill-button {
  visibility: hidden;
  pointer-events: none;
  position: absolute;
}

.pw-wrap {
  position: relative;
  display: block;
  margin-bottom: 18px;
}
.pw-wrap .cx-input {
  padding-right: 52px;
  margin-bottom: 0;
}

.pw-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 44px;
  transform: translateY(-50%);
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.12);
  pointer-events: none;
}

.pw-toggle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 10px;
  width: 28px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: rgba(255,255,255,0.4);
  border-radius: 4px;
  transition: color 0.15s;
}
.pw-toggle:hover,
.pw-toggle:focus-visible {
  color: rgba(201,168,76,0.95);
  outline: none;
}
.pw-toggle.is-on { color: rgba(201,168,76,0.95); }
.pw-toggle svg { display: block; width: 18px; height: 18px; }
