/* Dedicated sign-in canvas; application layout and authentication stay untouched. */
body:has(.auth-scene) { background: #f6f7fa; }
@media screen and (max-width:700px) {
    body .auth-scene { background-image: var(--crm-mobile-canvas); }
}
body:has(.auth-scene) > .topbar, body:has(.auth-scene) > .sidebar { display: none; }
body:has(.auth-scene) main, body:has(.auth-scene) main.login-main { margin: 0; min-height: 100svh; }
body:has(.auth-scene) main > .tabs, body:has(.auth-scene) .page-heading, body:has(.auth-scene) .admin-breadcrumbs { display: none; }
body:has(.auth-scene) main > .content { padding: 0; }
body:has(.auth-scene) #content { padding: 0; margin: 0; width: 100%; }
.auth-scene { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; padding: 34px clamp(24px, 5vw, 88px) 24px; display: flex; flex-direction: column; background: #f1f7fa url("backgrounds/auth-lines.2324404607a9.svg") center / cover no-repeat; color: #29384b; }
.auth-orb { display: none; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; }
.auth-orb-gold { width: 620px; height: 620px; left: -250px; top: 18%; background: radial-gradient(circle, #9fdbd370, #9fdbd300 70%); }
.auth-orb-blue { width: 740px; height: 740px; right: -300px; top: -200px; background: radial-gradient(circle, #a8c9f36b, #a8c9f300 70%); animation-delay: -6s; }
.auth-orb-lilac { width: 600px; height: 600px; left: 35%; bottom: -340px; background: radial-gradient(circle, #cfafe870, #cfafe800 70%); animation-delay: -12s; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand-icon { display: grid; place-items: center; width: 43px; height: 43px; background: #a4ded8; border-radius: 13px; color: #1f524b; box-shadow: 0 5px 14px #38948820; }
.auth-brand-icon svg { width: 25px; height: 25px; }
.auth-brand strong, .auth-brand div > span { display: block; }
.auth-brand strong { font-size: 14px; letter-spacing: -.2px; }
.auth-brand div > span { margin-top: 4px; font-size: 11px; color: #78869a; }
.auth-layout { width: 100%; max-width: 1150px; margin: auto; padding: 52px 0; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(40px, 8vw, 125px); align-items: center; }
.auth-story { animation: auth-enter .8s ease both; }
.auth-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 1.5px; font-weight: 700; color: #7a807b; }
.auth-eyebrow > span { width: 6px; height: 6px; border-radius: 50%; background: #45b3a4; }
.auth-story h1 { font-size: clamp(38px, 4.6vw, 66px); line-height: 1.07; font-weight: 700; letter-spacing: -2.6px; margin: 26px 0 22px; }
.auth-story h1 em { font-style: normal; color: #47877e; background: linear-gradient(105deg, #3b9a8e, #7c6caf); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.auth-story > p { max-width: 410px; line-height: 1.8; font-size: 15px; color: #728094; margin: 0; }
.auth-illustration { position: relative; height: 210px; max-width: 460px; margin-top: 26px; }
.auth-orbit { position: absolute; width: 290px; height: 170px; left: 68px; top: 0; border: 1px solid #c6ccdf70; border-radius: 50%; transform: rotate(-18deg); }
.auth-mini-card { position: absolute; display: flex; gap: 12px; padding: 15px 19px; border-radius: 15px; border: 1px solid #fff; background: #ffffffcc; box-shadow: 0 10px 30px #50617f0e; }
.auth-mini-candidate { left: 0; top: 25px; align-items: center; width: 285px; animation: auth-float 6s ease-in-out infinite; }
.auth-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; background: #e9e4f6; color: #8064a1; border-radius: 12px; font-weight: 700; }
.auth-mini-card strong { display: block; font-size: 12px; margin-bottom: 5px; }
.auth-mini-card div > span, .auth-mini-pipeline > span { font-size: 10px; color: #8b95a5; }
.auth-mini-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #75ad96; }
.auth-mini-pipeline { right: 0; top: 93px; width: 267px; flex-direction: column; gap: 10px; animation: auth-float 7s ease-in-out -3s infinite; }
.auth-mini-pipeline .auth-mini-caption { color: #526480; font-size: 11px; font-weight: 700; }
.auth-steps { display: flex; align-items: center; gap: 6px; }
.auth-steps i { width: 12px; height: 12px; border-radius: 50%; background: #c1d7eb; }
.auth-steps i:nth-of-type(2) { background: #d9c9eb; }
.auth-steps i:nth-of-type(3) { background: #9fdbd3; }
.auth-steps i:nth-of-type(4) { background: #a5ceb9; }
.auth-steps b { height: 2px; flex: 1; background: #e3e8f1; }
.auth-mini-tag { position: absolute; bottom: 0; left: 9px; font-size: 11px; color: #5f8c86; }
.auth-card { min-width: 0; padding: 34px; border: 1px solid #ffffff; border-radius: 24px; background: #ffffffeb; box-shadow: 0 4px 8px #36466a04, 0 22px 70px #36466a13, inset 0 1px 0 #fff; animation: auth-enter .8s .12s ease both; }
.auth-card-mark { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 26px; background: #dbf2ef; border: 1px solid #aee0d9; border-radius: 12px; font-size: 24px; color: #33877c; }
.auth-card-eyebrow { font-size: 9px; letter-spacing: 1.5px; font-weight: 700; color: #919aaa; }
.auth-card h2 { font-size: 27px; letter-spacing: -.8px; line-height: 1.25; margin: 11px 0 10px; }
.auth-card-intro { color: #8190a2; font-size: 12px; line-height: 1.7; margin: 0 0 26px; }
.auth-card .auth-field { margin-bottom: 18px; }
.auth-card .auth-field label { display: block; margin-bottom: 8px; font-size: 12px; color: #53647a; font-weight: 600; }
.auth-input-wrap { position: relative; }
.auth-card .auth-field input { display: block; width: 100%; min-width: 0; height: 47px; border: 1px solid #dfe6ef; border-radius: 10px; padding: 11px 13px; background: #f8fafd; color: #30445d; box-shadow: inset 0 2px 4px #42547606; transition: border-color .2s, box-shadow .2s, background .2s; }
.auth-card .auth-field input:focus { outline: none; border-color: #4dbcad; background: #f9fdfc; box-shadow: 0 0 0 3px #9fdbd330; }
.auth-card .auth-field input[name=password], .auth-card .auth-field input[data-password-field] { padding-right: 88px; }
.auth-card .auth-password-toggle { position: absolute; right: 9px; top: 8px; min-height: 30px; padding: 4px 6px; font-size: 10px; border: 0; background: transparent; color: #77889d; box-shadow: none; }
.auth-card .auth-password-toggle[hidden] { display: none; }
.auth-card .auth-submit { width: 100%; height: 48px; justify-content: space-between; padding: 0 18px; margin-top: 5px; border-radius: 10px; background: linear-gradient(110deg, #9fdbd3, #a4ded8); border-color: #9fdbd3; color: #1d4e47; box-shadow: 0 5px 14px #44b3a422; transition: transform .2s, box-shadow .2s; }
.auth-card .auth-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 19px #44b3a430; }
.auth-card .auth-submit:active { transform: translateY(0); }
.auth-card .auth-submit:focus-visible, .auth-password-toggle:focus-visible { outline: 2px solid #33867b; outline-offset: 3px; }
.auth-help { display: flex; align-items: center; gap: 10px; padding-top: 22px; margin-top: 23px; border-top: 1px solid #edf0f5; color: #8d99aa; }
.auth-help > span { font-size: 22px; color: #a5b2c3; }
.auth-help p { font-size: 11px; line-height: 1.7; margin: 0; }
.auth-errors, .auth-field-errors { font-size: 12px; line-height: 1.6; color: #a73c52; }
.auth-errors { padding: 12px; margin-bottom: 20px; background: #fff2f4; border: 1px solid #f1d7df; border-radius: 9px; }
.auth-errors ul, .auth-field-errors ul { list-style: none; margin: 0; padding: 0; }
.auth-field-errors { margin-top: 6px; }
.auth-footer { display: flex; justify-content: space-between; gap: 20px; font-size: 10px; color: #909bac; }
@keyframes auth-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes auth-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes auth-drift { from { transform: translate(0,0); } to { transform: translate(35px,20px); } }
@media (max-width: 950px) { .auth-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 35px; } .auth-card { padding: 28px; } .auth-story h1 { font-size: 44px; } .auth-mini-pipeline { right: 0; width: 220px; } }
@media (max-width: 760px) { .auth-scene { padding: 24px 20px; } .auth-layout { grid-template-columns: minmax(0, 1fr); max-width: 440px; gap: 28px; padding: 34px 0; } .auth-story h1 { font-size: 36px; letter-spacing: -1.5px; margin: 16px 0 12px; } .auth-story h1 br { display: none; } .auth-story h1 em::before { content: ' '; } .auth-story > p { font-size: 12px; line-height: 1.7; } .auth-illustration { display: none; } .auth-eyebrow { font-size: 8px; letter-spacing: 1px; } .auth-card h2 { font-size: 25px; } .auth-footer { flex-wrap: wrap; justify-content: center; text-align: center; gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .auth-scene *, .auth-scene *::before { animation: none !important; transition: none !important; } .auth-card .auth-submit:hover { transform: none; } }
