/* Boostr v2 — écrans de connexion (/espace, /reset). Boards : LoginPC, Login (phone), Oubli. */
.lg-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-padding-top: 16px; scroll-padding-bottom: 16px; }

/* Header simple : nav | logo | action */
.lg-header { height: 80px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; font-size: 0.875rem; }
.lg-header nav { display: flex; gap: 8px; }
.lg-header nav a { text-decoration: none; padding: 8px 12px; border-radius: 18px; }
.lg-header .logo { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; padding: 4px 12px; border-radius: 18px; }
.lg-header .start { justify-self: start; display: flex; align-items: center; }
.lg-header .end { justify-self: end; display: flex; align-items: center; }
.lg-back-pill { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; padding: 8px 14px; border-radius: 22px; border: 1px solid var(--line); background: var(--white); white-space: nowrap; }
.lg-back-icon { display: none; width: 44px; height: 44px; border-radius: 22px; align-items: center; justify-content: center; }
.lg-spacer { display: none; width: 44px; }

/* Carte noire */
.lg-main { flex: 1; display: flex; padding-bottom: 40px; }
.lg-card { position: relative; flex: 1; min-height: 640px; border-radius: var(--r-hero); overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: center; padding: 64px 24px; animation: lgCard .9s var(--ease) backwards; }
.lg-card .glow-follow { width: 820px; height: 820px; margin: -410px 0 0 -410px; background: radial-gradient(circle, rgba(255, 255, 255, .18) 0%, rgba(44, 131, 255, .1) 35%, rgba(10, 10, 10, 0) 70%); }
.lg-col { position: relative; width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 30px; text-align: center; }
.lg-head { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lg-head .mono { color: var(--slate-dark); }
.lg-title { font-size: 4rem; line-height: 1; justify-content: center; column-gap: 16px; }
.lg-title.sm { font-size: 3.25rem; }
.lg-head p { font-size: 0.9375rem; line-height: 1.5; color: var(--slate); }

.lg-form { display: flex; flex-direction: column; gap: 10px; }
.lg-label { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); text-align: center; }
.lg-input { height: 54px; border-radius: 27px; padding: 0 20px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: var(--white); font-family: var(--font-body); font-size: 1rem; letter-spacing: 0; text-transform: none; text-align: center; width: 100%; }
.lg-input::placeholder { color: var(--slate-dark); }
.lg-input[aria-invalid="true"] { border-color: rgba(255, 110, 110, .85); }
/* Mot de passe : bouton afficher / masquer (le texte reste centré grâce au padding symétrique) */
.lg-pw { position: relative; display: block; }
.lg-pw .lg-input { padding: 0 56px; }
.lg-pw-toggle { position: absolute; top: 5px; right: 5px; width: 44px; height: 44px; border-radius: 22px; border: 0; background: transparent; color: var(--slate); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: color .2s, background-color .2s; -webkit-tap-highlight-color: transparent; }
.lg-pw-toggle:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.lg-pw-toggle .i-hide, .lg-pw-toggle[aria-pressed="true"] .i-show { display: none; }
.lg-pw-toggle[aria-pressed="true"] .i-hide { display: block; }
.lg-pw .lg-input::-ms-reveal { display: none; }
.lg-submit { height: 56px; margin-top: 6px; border-radius: 28px; border: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); font-weight: 600; font-size: 0.9375rem; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; width: 100%; }
.lg-submit:disabled { opacity: .72; cursor: progress; transform: none !important; box-shadow: none !important; }
.lg-link { align-self: center; text-decoration: none; font-size: 0.8125rem; color: var(--slate) !important; padding: 12px 12px; border-radius: 16px; background: none; border: 0; cursor: pointer; }
.lg-link:hover { color: var(--white) !important; }
.lg-loader { display: none; flex-shrink: 0; width: 18px; height: 18px; border: 2px solid rgba(10, 10, 10, .2); border-top-color: var(--ink); border-radius: 50%; animation: lgSpin .7s linear infinite; }
.lg-msg { display: none; font-size: 0.875rem; line-height: 1.45; text-align: center; color: var(--white); text-wrap: pretty; overflow-wrap: anywhere; }
.lg-msg a { font-weight: 600; }
.lg-done { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.lg-done .notice { font-size: 0.9375rem; padding: 16px 20px; border-radius: 20px; color: var(--white); }
.lg-done .btn { width: auto; }

.lg-help { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.8125rem; }
.lg-help span { color: var(--slate-dark); }
.lg-help a { text-decoration: none; font-weight: 500; padding: 12px 12px; border-radius: 16px; }
.lg-help-out { display: none; }

/* Apparitions */
.lg-in { animation: lgUp .7s var(--ease) backwards; }
.lg-in.d1 { animation-delay: .12s; }
.lg-in.d2 { animation-delay: .27s; }
.lg-in.late { animation-delay: .45s; }
@keyframes lgCard { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@keyframes lgUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lgSpin { to { transform: rotate(360deg); } }
.lg-col .words:not(.in) > span { transform: translateY(18px); filter: blur(8px); transition-duration: .7s; }

[hidden] { display: none !important; }

/* Phone (board Login 390) */
@media (max-width: 860px) {
  .lg-header { height: 72px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding: 0 4px; }
  .lg-spacer { display: block; }
  .lg-header nav, .lg-header .end .btn { display: none; }
  .lg-header .logo { font-size: 1.5rem; padding: 4px 0; }
  .lg-back-icon { display: inline-flex; }
  .lg-back-pill { font-size: 0.8125rem; padding: 8px 12px; }
  .lg-main { padding-bottom: 12px; flex-direction: column; gap: 20px; }
  .lg-card { flex: 0 0 auto; min-height: min(640px, calc(100svh - 190px)); padding: 28px; border-radius: 30px; }
  .lg-card .glow-follow { width: 520px; height: 520px; margin: -260px 0 0 -260px; background: radial-gradient(circle, rgba(255, 255, 255, .2) 0%, rgba(44, 131, 255, .12) 35%, rgba(10, 10, 10, 0) 70%); }
  .lg-title { font-size: 3.25rem; column-gap: 14px; }
  .lg-title.sm { font-size: 2.5rem; }
  .lg-help-in { display: none; }
  .lg-help-out { display: flex; padding: 0 12px 18px; }
  .lg-help-out span { color: var(--muted); }
  .lg-help-out a { color: var(--ink); }
}
@media (max-width: 360px) {
  .lg-title { font-size: 2.75rem; }
  .lg-title.sm { font-size: 2.125rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-card, .lg-in { animation: none !important; }
  .lg-loader { animation-duration: 1.6s; }
  .lg-pw-toggle { transition: none; }
}

/* États de /espace : connexion ↔ mot de passe oublié */
body[data-view="login"] .lg-back-pill,
body[data-view="oubli"] .lg-header nav,
body[data-view="oubli"] .lg-back-icon,
body[data-view="oubli"] .lg-header .end .btn { display: none !important; }
@media (max-width: 860px) {
  body[data-view="oubli"] .lg-back-pill { font-size: 0.8125rem; padding: 8px 12px; }
}
