/* Page de connexion (préfixe lg-) — carte en deux volets sur fond photo flouté. Animations : transform/opacity. */
.lg-page { --ease: cubic-bezier(.16, 1, .3, 1); position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 1.5rem; overflow: hidden; background: #2a1a12; }
.lg-bg { position: fixed; inset: -2rem; background: url("../images/hero-team.jpg") center / cover no-repeat; filter: blur(22px) brightness(.72) saturate(1.15); transform: scale(1.06); }

.lg-card { position: relative; width: min(68rem, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 1rem; padding: .85rem; border-radius: 2.25rem; background: #fff; box-shadow: 0 40px 90px rgba(15, 23, 42, .35); animation: lg-in .6s var(--ease) both; }
@keyframes lg-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }

/* ---------- Volet formulaire ---------- */
.lg-form-col { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 2.5rem; max-width: 27rem; width: 100%; margin: 0 auto; }
.lg-logo { display: block; margin-bottom: 1.5rem; }
.lg-logo img { height: 4.2rem; width: auto; display: block; }
.lg-title { font-size: 2rem; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; text-align: center; color: #0f172a; }

.lg-blob { display: inline-flex; align-items: center; margin: 1.6rem 0 .8rem; padding: .35rem .6rem; background: #f4f4f4; border-radius: 999px; }
.lg-blob span { width: 2.7rem; height: 2.7rem; border-radius: 50%; display: grid; place-items: center; background: #f4f4f4; color: #475569; margin: 0 -.3rem; box-shadow: 0 0 0 4px #fff; position: relative; }
.lg-blob span:nth-child(2) { z-index: 1; color: #E85A24; }
.lg-or { font-size: .8125rem; color: #64748b; margin-bottom: 1.1rem; text-align: center; }

.lg-alerts, .lg-form { width: 100%; }
.lg-alerts { margin-bottom: .75rem; display: flex; flex-direction: column; gap: .4rem; }
.lg-alert { padding: .65rem 1rem; border-radius: 1rem; background: #f4f4f4; font-size: .8125rem; font-weight: 600; text-align: center; }
.lg-alert.is-error { background: #fef2f2; color: #b91c1c; }
.lg-form { display: flex; flex-direction: column; gap: .75rem; }
.lg-form .lg-alert { animation: lg-shake .4s var(--ease); }
@keyframes lg-shake { 20% { transform: translateX(-5px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } }

.lg-field { position: relative; }
.lg-field input { width: 100%; height: 3.1rem; padding: 0 1.3rem; border-radius: 999px; border: 2px solid transparent; background: #f4f4f4; font-size: .9rem; font-weight: 500; color: #0f172a; transition: background-color .2s, border-color .2s, box-shadow .2s; }
.lg-field input::placeholder { color: #475569; font-weight: 500; }
.lg-field input:focus { outline: none; background: #fff; border-color: #E85A24; box-shadow: 0 0 0 4px rgba(232, 90, 36, .14); }
.lg-field input[type="password"], .lg-field input.has-eye { padding-right: 3.2rem; }
.lg-eye { position: absolute; right: .55rem; top: 50%; width: 2.2rem; height: 2.2rem; margin-top: -1.1rem; border-radius: 50%; display: grid; place-items: center; color: #475569; transition: background-color .15s, color .15s, transform .12s; }
.lg-eye svg { width: 1.15rem; height: 1.15rem; grid-area: 1 / 1; transition: opacity .15s; }
.lg-eye .is-hide { opacity: 0; } .lg-eye.is-on .is-hide { opacity: 1; } .lg-eye.is-on .is-show { opacity: 0; }
.lg-eye:active { transform: scale(.92); }
@media (hover: hover) { .lg-eye:hover { background: rgba(15, 23, 42, .06); color: #0f172a; } }
.lg-eye:focus-visible, .lg-submit:focus-visible, .lg-foot a:focus-visible, .lg-back:focus-visible, .lg-logo:focus-visible { outline: 2px solid #E85A24; outline-offset: 3px; border-radius: 999px; }
.lg-caps { font-size: .75rem; font-weight: 600; color: #b45309; text-align: center; margin-top: -.25rem; }
.lg-caps[hidden] { display: none; }

.lg-submit { height: 3.1rem; margin-top: .5rem; border-radius: 999px; background: #E85A24; color: #fff; font-size: .95rem; font-weight: 700; letter-spacing: .01em; box-shadow: 0 10px 22px -8px rgba(232, 90, 36, .7); transition: transform .15s var(--ease), background-color .15s, box-shadow .2s, opacity .2s; }
.lg-submit:active { transform: scale(.98); }
@media (hover: hover) { .lg-submit:hover { background: #d44f1c; box-shadow: 0 14px 26px -8px rgba(232, 90, 36, .75); } }
.lg-submit:disabled { opacity: .7; cursor: progress; }
.lg-submit.is-busy span { animation: lg-pulse 1s ease-in-out infinite; }
@keyframes lg-pulse { 50% { opacity: .55; } }

.lg-foot { margin-top: 1.4rem; font-size: .8125rem; color: #334155; text-align: center; }
.lg-foot a { font-weight: 800; color: #0f172a; text-decoration: none; }
@media (hover: hover) { .lg-foot a:hover { color: #E85A24; } }
.lg-back { margin-top: .7rem; font-size: .75rem; color: #94a3b8; transition: color .15s; }
@media (hover: hover) { .lg-back:hover { color: #475569; } }

/* ---------- Volet visuel ---------- */
.lg-visual { position: relative; border-radius: 1.6rem; overflow: hidden; min-height: 40rem; background: #1e293b; }
.lg-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.lg-tint { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 23, 42, .4), transparent 50%), linear-gradient(to bottom, rgba(15, 23, 42, .2), transparent 35%); }

.lg-tag { position: absolute; color: #fff; }
.lg-tag > * { animation: lg-float 6s ease-in-out infinite; }
.lg-tag-2 > * { animation-delay: -2s; } .lg-tag-3 > * { animation-delay: -4s; }
@keyframes lg-float { 50% { transform: translateY(-5px); } }
.lg-line, .lg-dot { position: absolute; animation: none !important; }
.lg-line { width: 1px; background: rgba(255, 255, 255, .8); }
.lg-dot { width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); margin-left: -5px; }

.lg-pill, .lg-note { background: rgba(28, 20, 16, .42); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); box-shadow: 0 10px 30px rgba(15, 23, 42, .18); }
.lg-pill { display: flex; align-items: center; gap: .8rem; padding: .5rem 1.4rem .5rem .5rem; border-radius: 999px; }
.lg-pill-ico { width: 2.9rem; height: 2.9rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .28); }
.lg-pill small { display: block; font-size: .75rem; opacity: .9; } .lg-pill b { display: block; font-size: .95rem; font-weight: 800; }
.lg-note { padding: 1rem 1.2rem; border-radius: 1.2rem; min-width: 8.5rem; }
.lg-note b { display: block; font-size: 1.15rem; font-weight: 800; margin-bottom: .35rem; }
.lg-note span { font-size: .8125rem; line-height: 1.35; opacity: .95; }
.lg-pill, .lg-note, .lg-chip { box-shadow: 0 10px 30px rgba(15, 23, 42, .22); }
.lg-chip { padding: .7rem 1.5rem; backdrop-filter: blur(10px); border-radius: 999px; background: rgba(255, 255, 255, .8); color: #0f172a; font-weight: 700; font-size: .95rem; border-color: rgba(255, 255, 255, .9); }

.lg-tag-1 { left: 9%; top: 21%; }
.lg-tag-1 .lg-line { left: 1.45rem; bottom: 100%; height: 5.4rem; }
.lg-tag-1 .lg-dot { left: 1.45rem; bottom: calc(100% + 5.4rem - 5px); }
.lg-tag-2 { right: 6%; top: 36%; }
.lg-tag-2 .lg-line { right: 2rem; top: 100%; height: 4.2rem; }
.lg-tag-2 .lg-dot { right: 2rem; top: calc(100% + 4.2rem - 5px); margin-left: 0; margin-right: -5px; }
.lg-tag-3 { left: 50%; bottom: 17%; transform: translateX(-50%); }
.lg-tag-3 .lg-line { left: 50%; top: 100%; height: 3.4rem; }
.lg-tag-3 .lg-dot { left: 50%; top: calc(100% + 3.4rem - 5px); }

/* ---------- Adaptation ---------- */
@media (max-width: 900px) {
  .lg-card { grid-template-columns: 1fr; width: min(30rem, 100%); border-radius: 1.75rem; }
  .lg-visual { display: none; }
  .lg-form-col { padding: 1.75rem 1.25rem 1.5rem; }
  .lg-title { font-size: 1.65rem; }
}
@media (max-height: 700px) and (min-width: 901px) { .lg-visual { min-height: 34rem; } .lg-blob { margin-top: 1rem; } }
@media (prefers-reduced-motion: reduce) { .lg-card, .lg-tag > *, .lg-form .lg-alert, .lg-submit.is-busy span { animation: none; } .lg-field input, .lg-submit, .lg-eye { transition: none; } }
