/* Ecran de connexion ANRH : les formulaires et leurs protections sont conserves. */
.login-body--portal { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; margin: 0; padding: clamp(18px, 4vw, 56px); background: #f6f3f0; color: #3b293e; }
.login-portal { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); width: min(1120px, 100%); min-height: 690px; overflow: hidden; border: 1px solid #e6dfe4; border-radius: 30px; background: #fff; box-shadow: 0 26px 90px #46283e12; }
.login-welcome { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; overflow: hidden; padding: clamp(30px, 4vw, 56px); background: #4e324e; color: #fff; }
.login-brand { display: flex; align-items: center; gap: 14px; }
.login-brand-mark { display: grid; place-items: center; width: 64px; height: 70px; border-radius: 18px; background: #fffdf6; color: inherit; text-decoration: none; }
.login-brand-mark:hover { background: #fff; }
.login-brand-mark:focus-visible { outline: 3px solid #dce8b7; outline-offset: 3px; }
.login-brand-mark img { display: block; max-height: 48px; width: auto; }
.login-brand > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.login-brand strong { font-size: 1.42rem; letter-spacing: .06em; }
.login-brand small { color: #e2d8e2; font-size: .76rem; }
.login-overline { margin: 0; font-size: .66rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.login-welcome-copy { position: relative; z-index: 1; }
.login-welcome-copy .login-overline { color: #d9c5d7; }
.login-welcome h2 { margin: 22px 0; color: #fff; font-size: clamp(2.5rem, 4.3vw, 3.9rem); letter-spacing: -.05em; line-height: 1.12; }
.login-welcome h2 span { color: #dce8b7; }
.login-welcome-copy > p:last-of-type { max-width: 32ch; font-size: .93rem; line-height: 1.85; color: #e6dce5; }
.login-welcome-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.login-welcome-tags span { padding: 7px 12px; border: 1px solid #ffffff38; border-radius: 99px; color: #f6eef5; font-size: .69rem; }
.login-welcome-foot { position: relative; z-index: 1; max-width: 29ch; color: #d6c6d4; font-size: .69rem; line-height: 1.7; }
.login-orbits { position: absolute; z-index: -1; width: 480px; height: 480px; bottom: -290px; right: -205px; pointer-events: none; }
.login-orbits span { position: absolute; inset: 0; border: 1px solid #dce8b74a; border-radius: 50%; }
.login-orbits span:nth-child(2) { inset: 32px; border-width: 24px; border-color: #dce8b711; }
.login-orbits span:nth-child(3) { inset: 96px; border-width: 2px; }
.login-portal .login-card { align-self: center; width: 100%; min-width: 0; padding: clamp(30px, 4.5vw, 62px); border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.login-portal .login-card > .login-overline { margin: 0 0 14px; color: #80607a; }
.login-portal .login-card h1 { margin: 0 0 18px; color: #3b293e; font-size: clamp(1.9rem, 2.7vw, 2.45rem); letter-spacing: -.035em; line-height: 1.18; }
.login-portal .login-card > p:not(.login-overline):not(.login-support) { margin: 0 0 28px; color: #706573; font-size: .85rem; line-height: 1.7; }
.login-portal .login-card .login-hint { margin: 0 0 20px; color: #706573; font-size: .72rem; }
.login-portal .login-card label { margin: 20px 0 8px; color: #49394b; font-size: .78rem; }
.login-portal .login-card input[type="email"], .login-portal .login-card input[type="password"] { display: block; width: 100%; min-height: 52px; padding: 12px 15px; border: 1px solid #dcd1dc; border-radius: 12px; background: #fcfbfc; color: #3b293e; font-size: .93rem; transition: border-color .2s, box-shadow .2s; }
.login-portal .login-card input:focus { border-color: #78526f; outline: none; box-shadow: 0 0 0 4px #78526f16; }
.login-portal .login-card button[type="submit"] { width: 100%; min-height: 52px; margin-top: 26px; border-radius: 12px; background: #573656; color: #fff; font-size: .85rem; box-shadow: 0 5px 16px #57365612; transition: background .2s, transform .2s; }
.login-portal .login-card button[type="submit"]:hover { background: #3e273e; transform: translateY(-1px); }
.login-portal .login-card button:focus-visible { outline: 3px solid #78526f; outline-offset: 4px; }
.login-portal .login-card .login-support { margin: 30px 0 0; padding-top: 22px; border-top: 1px solid #eee8ee; color: #796e7c; font-size: .71rem; line-height: 1.8; }
.login-support strong { color: #5d4960; font-weight: 400; }
.login-portal .login-card .login-error { padding: 16px; margin: 20px 0; border: 1px solid #dfb1b8; border-radius: 12px; color: #702334; background: #fff5f5; line-height: 1.55; font-size: .8rem; }
.login-error strong { display: block; margin-bottom: 6px; }
.login-error p { margin: 0; }
.login-error small { display: block; margin-top: 10px; font-size: .69rem; }
.login-card form + form { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e8dfe9; }
@keyframes login-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) { .login-portal { animation: login-arrive .45s ease-out both; } }
@media (max-width: 760px) {
 .login-body--portal { padding: 20px 14px; }
 .login-portal { grid-template-columns: minmax(0, 1fr); min-height: 0; max-width: 480px; border-radius: 24px; }
 .login-welcome { padding: 26px 28px; gap: 24px; }
 .login-brand-mark { width: 45px; height: 49px; border-radius: 12px; }
 .login-brand-mark img { max-height: 34px; }
 .login-brand strong { font-size: 1.1rem; }
 .login-welcome-copy .login-overline, .login-welcome-copy > p:last-of-type, .login-welcome-tags, .login-welcome-foot { display: none; }
 .login-welcome h2 { margin: 0; font-size: 2.3rem; }
 .login-orbits { right: -250px; bottom: -330px; }
 .login-portal .login-card { padding: 30px 28px; }
 .login-portal .login-card h1 { font-size: 1.9rem; }
}
@media (max-width: 360px) { .login-body--portal { padding: 12px; } .login-welcome, .login-portal .login-card { padding: 24px 20px; } .login-welcome h2 { font-size: 2rem; } .login-portal .login-card h1 { font-size: 1.7rem; } }
@media (prefers-reduced-motion: reduce) { .login-portal, .login-portal * { animation: none !important; transition: none !important; } }
