/* =====================================================================
   OBSCURA — Écran de connexion / inscription (wp-login.php)
   Split-screen : panneau de marque (gauche) + carte formulaire (droite).
   ===================================================================== */

body.obscura-login {
  --ob-ink:#0E0B0D; --ob-ink-2:#15110F; --ob-line:#2A211F;
  --ob-cream:#ECE7E1; --ob-cream-dim:#A9A09A; --ob-cream-mut:#756C66;
  --ob-burgundy:#8A0E32; --ob-burgundy-lt:#B23A55; --ob-gold:#C9A25A; --ob-gold-soft:#E3C98B;
  --ob-font-display:'Fraunces',Georgia,serif; --ob-font-body:'Inter',system-ui,sans-serif;
  min-height: 100vh; margin: 0;
  background: var(--ob-ink);
  color: var(--ob-cream);
  font-family: var(--ob-font-body);
  display: flex;
}

/* ---- Panneau de marque (gauche) ---- */
body.obscura-login::before {
  content: "Le magazine des récits obscurs.";
  flex: 1 1 46%;
  position: relative;
  display: flex; align-items: flex-end;
  padding: 3.4rem;
  font-family: var(--ob-font-display); font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.3;
  color: var(--ob-cream); max-width: 18ch;
  background:
    radial-gradient(90% 70% at 30% 20%, rgba(138,14,50,.42), transparent 60%),
    radial-gradient(70% 60% at 80% 90%, rgba(201,162,90,.14), transparent 60%),
    var(--ob-login-star) -40px -40px / 220px 220px,
    var(--ob-ink-2);
  background-blend-mode: normal, normal, soft-light, normal;
  border-right: 1px solid var(--ob-line);
}
body.obscura-login::after {
  content: "OBSCURA";
  position: fixed; left: -.5vw; top: 8%;
  font-family: var(--ob-font-display); font-weight: 600;
  font-size: 14vw; letter-spacing: -.02em;
  color: rgba(201,162,90,.05);
  pointer-events: none; z-index: 0; white-space: nowrap;
}
@media (max-width: 860px) {
  body.obscura-login { display: block; }
  body.obscura-login::before { display: none; }
  body.obscura-login::after { font-size: 34vw; top: auto; bottom: 2%; }
}

/* ---- Colonne formulaire (droite) ---- */
body.obscura-login #login {
  position: relative; z-index: 2;
  flex: 1 1 54%;
  width: 100%; max-width: 460px;
  margin: auto; padding: clamp(2rem, 5vh, 4rem) clamp(1.4rem, 5vw, 3.4rem);
  display: flex; flex-direction: column; justify-content: center;
}

/* Logo sur plaque crème */
body.obscura-login h1 { margin: 0 0 1.4rem; text-align: left; }
body.obscura-login h1 a {
  background-image: var(--ob-login-logo) !important;
  background-size: contain !important;
  background-position: left center !important;
  width: 200px !important; height: 64px !important;
  margin: 0 !important;
  padding: 0 !important;
  text-indent: -9999px;
}

/* Intro éditoriale */
.ob-login-intro { margin-bottom: 1.6rem; }
.ob-login-intro__eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ob-gold); }
.ob-login-intro h2 { font-family: var(--ob-font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--ob-cream); margin: .4rem 0 .4rem; line-height: 1.1; }
.ob-login-intro p { color: var(--ob-cream-dim); font-size: .92rem; margin: 0; max-width: 40ch; }

/* ---- Carte formulaire ---- */
body.obscura-login form {
  background: var(--ob-ink-2) !important;
  border: 1px solid var(--ob-line) !important;
  border-radius: 8px !important;
  box-shadow: 0 30px 70px -36px rgba(0,0,0,.9) !important;
  padding: 1.8rem !important;
  margin-top: 0 !important;
  overflow: hidden;
}
body.obscura-login form { border-top: 2px solid var(--ob-gold) !important; }

body.obscura-login form label { color: var(--ob-cream-dim); font-size: .82rem; letter-spacing: .02em; }
body.obscura-login input[type=text],
body.obscura-login input[type=password],
body.obscura-login input[type=email] {
  background: var(--ob-ink) !important;
  border: 1px solid var(--ob-line) !important;
  border-radius: 4px !important;
  color: var(--ob-cream) !important;
  font-size: 1rem !important;
  padding: .7rem .8rem !important;
  box-shadow: none !important;
  transition: border-color .25s, box-shadow .25s;
}
body.obscura-login input[type=text]:focus,
body.obscura-login input[type=password]:focus,
body.obscura-login input[type=email]:focus {
  border-color: var(--ob-gold) !important;
  box-shadow: 0 0 0 3px rgba(201,162,90,.18) !important;
  outline: none !important;
}
body.obscura-login .wp-pwd { display: flex; align-items: center; }
body.obscura-login .button.wp-hide-pw { background: transparent !important; border: 0 !important; color: var(--ob-cream-mut) !important; box-shadow: none !important; }
body.obscura-login .button.wp-hide-pw:hover { color: var(--ob-gold) !important; }

/* Bouton principal */
body.obscura-login .button-primary,
body.obscura-login #wp-submit {
  background: var(--ob-burgundy) !important;
  border: 1px solid var(--ob-burgundy) !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-weight: 600 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  font-size: .82rem !important;
  padding: .7rem 1.6rem !important;
  height: auto !important;
  text-shadow: none !important;
  box-shadow: none !important;
  transition: background .25s, transform .15s;
  float: none !important; width: 100%;
}
body.obscura-login .button-primary:hover,
body.obscura-login #wp-submit:hover { background: var(--ob-burgundy-lt) !important; border-color: var(--ob-burgundy-lt) !important; }
body.obscura-login .button-primary:active { transform: translateY(1px); }

body.obscura-login .forgetmenot { margin-bottom: .8rem; }
body.obscura-login .forgetmenot label { color: var(--ob-cream-dim); }
body.obscura-login .submit { text-align: center; }

/* Force du mot de passe + indicateur */
body.obscura-login #pass-strength-result {
  background: var(--ob-ink) !important;
  border: 1px solid var(--ob-line) !important;
  color: var(--ob-cream-dim) !important;
  border-radius: 4px !important;
}
body.obscura-login #pass-strength-result.strong { border-color: #6FA572 !important; }
body.obscura-login #pass-strength-result.bad { border-color: var(--ob-burgundy-lt) !important; }
body.obscura-login .description, body.obscura-login .indicator-hint { color: var(--ob-cream-mut) !important; }

/* Messages & erreurs */
body.obscura-login #login_error,
body.obscura-login .message,
body.obscura-login .notice {
  background: var(--ob-ink-2) !important;
  border-left: 3px solid var(--ob-gold) !important;
  border-radius: 4px !important;
  color: var(--ob-cream) !important;
  box-shadow: none !important;
}
body.obscura-login #login_error { border-left-color: var(--ob-burgundy-lt) !important; }

/* Liens de navigation */
body.obscura-login #nav,
body.obscura-login #backtoblog { text-align: left; padding: 1rem 0 0 !important; text-shadow: none !important; }
body.obscura-login #nav a,
body.obscura-login #backtoblog a { color: var(--ob-cream-dim) !important; font-size: .85rem; }
body.obscura-login #nav a:hover,
body.obscura-login #backtoblog a:hover { color: var(--ob-gold) !important; }

/* Cacher le focus jaune par défaut sur les liens */
body.obscura-login a:focus { box-shadow: none !important; color: var(--ob-gold) !important; }

/* Langue switcher éventuel */
body.obscura-login .language-switcher { text-align: left; }
