:root {
    color-scheme: light;
    --ink: #172a35;
    --muted: #65757d;
    --blue: #245bda;
    --blue-dark: #1747b5;
    --paper: #f6f7f3;
    --line: #e4e9e7;
    --pointer-x: 50%;
    --pointer-y: 50%;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: var(--ink);
}
* { box-sizing: border-box; }
body.lexia-login { margin: 0; min-height: 100vh; min-height: 100svh; background: var(--paper); position: relative; isolation: isolate; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.lexia-login::before { content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(560px circle at var(--pointer-x) var(--pointer-y), #ddebff7a, transparent 66%); transition: background .12s linear; }
button, input { font: inherit; }
a { color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #81a5f4; outline-offset: 4px; }
.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(65px); pointer-events: none; }
.ambient-one { width: 520px; height: 520px; left: -250px; top: 10%; background: #dde8f6; opacity: .65; }
.ambient-two { width: 450px; height: 450px; right: -180px; bottom: 0; background: #e1eee5; opacity: .6; }
.cursor-glow { position: fixed; z-index: -1; width: 440px; height: 440px; left: var(--pointer-x); top: var(--pointer-y); translate: -50% -50%; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(circle, #b9d2ff26 0%, #b9d2ff0f 34%, transparent 70%); filter: blur(2px); transition: opacity .3s ease; }
.is-pointer-ready .cursor-glow { opacity: 1; }
.login-header, .login-main, .login-footer { max-width: 1240px; width: calc(100% - 112px); margin-inline: auto; }
.login-header { display: flex; justify-content: space-between; align-items: center; padding: 34px 0; }
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; }
.brand-symbol { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; color: white; background: var(--blue); box-shadow: 0 6px 15px #245bda1c; }
.brand-symbol svg { width: 28px; height: 28px; }
.brand-word { font-size: 29px; font-weight: 800; letter-spacing: -1.5px; }
.brand-crm { font-size: 10px; letter-spacing: 2px; color: var(--muted); margin-left: 6px; }
.header-note { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); }
.header-note > span { width: 5px; height: 5px; background: #4c9987; border-radius: 50%; }
.login-main { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; min-height: calc(100svh - 178px); padding: 35px 0 55px; }
.intro { animation: enter .62s cubic-bezier(.2,.8,.2,1) both; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 9px; font-weight: 800; letter-spacing: 2.1px; color: #52746f; }
.eyebrow-line { width: 23px; height: 1px; background: currentColor; }
h1 { margin: 25px 0 22px; font-size: clamp(44px, 4.7vw, 66px); font-weight: 600; line-height: 1.12; letter-spacing: -3.5px; }
h1 > span { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; color: var(--blue); letter-spacing: -1.7px; }
.intro-copy { font-size: 14px; line-height: 1.9; color: var(--muted); }
.workspace-art { height: 244px; max-width: 520px; position: relative; margin-top: 20px; }
.art-orbit { position: absolute; left: 40px; top: 45px; width: 370px; height: 170px; border: 1px solid #c7d7db; border-radius: 50%; transform: rotate(-20deg); opacity: .6; }
.orbit-two { width: 340px; height: 205px; left: 80px; top: 24px; transform: rotate(21deg); border-style: dashed; opacity: .35; }
.art-connection { position: absolute; inset: 0; width: 100%; height: 100%; color: #b2c6dc; }
.art-card { position: absolute; display: flex; align-items: center; gap: 11px; padding: 16px 18px; background: #ffffffed; border: 1px solid white; border-radius: 15px; box-shadow: 0 12px 32px #1d43510b, 0 2px 5px #1d435105; animation: card-float 7s ease-in-out infinite; transition: box-shadow .28s ease, border-color .28s ease; }
.art-orders { width: 278px; top: 18px; left: 10px; transform: rotate(-3deg); }
.art-people { width: 238px; top: 108px; left: 190px; animation-delay: -2s; }
.art-flow { width: 250px; top: 165px; left: 25px; animation-delay: -4s; }
.tile-icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; color: var(--blue); background: #eef3ff; }
.tile-icon svg { width: 20px; height: 20px; }
.tile-icon svg, .welcome-icon svg, .input-icon, .password-toggle svg, .submit-button svg, .panel-footer svg { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.art-people .tile-icon { color: #428b76; background: #edf6f0; }
.art-flow .tile-icon { color: #ac8140; background: #fcf5e8; }
.tile-label { font-size: 12px; font-weight: 800; }
.tile-label span { display: block; font-size: 9px; font-weight: 500; margin-top: 5px; color: var(--muted); }
.tile-dot { width: 7px; height: 7px; border-radius: 50%; background: #66ac91; margin-left: auto; }
.flow-spark { font-size: 23px; color: #c7a05d; margin-left: auto; }
.art-point { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #91afdc; }
.point-one { top: 65px; left: 360px; }
.point-two { top: 160px; left: 2px; background: #abbcad; }
.intro-foot { display: flex; align-items: center; gap: 10px; font-size: 10px; color: var(--muted); margin-top: 24px; }
.little-plus { font-size: 18px; color: #7c969b; }
.login-panel { width: 100%; max-width: 462px; justify-self: end; position: relative; background: #fffffff2; border: 1px solid var(--line); border-radius: 24px; padding: 39px 38px 0; box-shadow: 0 24px 80px #29455208, 0 3px 8px #29455203; backdrop-filter: blur(12px); animation: enter .62s .1s cubic-bezier(.2,.8,.2,1) both; transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.register-panel { max-width: 500px; }
.register-panel .welcome-icon { margin-bottom: 19px; }
.register-panel .panel-description { margin-bottom: 24px; }
.register-panel .field-group { margin-bottom: 16px; }
.register-panel .register-line { margin: 20px 0 24px; }
.panel-accent { position: absolute; width: 46px; height: 3px; top: -1px; left: 39px; background: var(--blue); border-radius: 4px; }
.welcome-icon { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #e2eaff; background: #f7f9ff; border-radius: 13px; color: var(--blue); margin-bottom: 24px; }
.welcome-icon svg { width: 22px; height: 22px; }
.panel-eyebrow { font-size: 9px; font-weight: 800; letter-spacing: 1.8px; color: var(--muted); margin: 0 0 9px; }
h2 { margin: 0; font-size: 31px; letter-spacing: -1.4px; font-weight: 800; }
.panel-description { font-size: 12px; color: var(--muted); margin: 10px 0 29px; }
.field-group { margin-bottom: 20px; }
.field-group > label { display: block; font-size: 11px; font-weight: 800; margin-bottom: 9px; }
.input-wrap { position: relative; }
.input-wrap input { width: 100%; height: 51px; padding: 0 14px 0 43px; border: 1px solid #dde5e7; border-radius: 10px; background: #fcfdfd; font-size: 13px; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.input-wrap input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px #245bda13; background: white; }
.input-wrap input::placeholder { color: #7c8991; }
.input-wrap input[aria-invalid="true"] { border-color: #c75454; }
.input-icon { position: absolute; width: 17px; height: 17px; left: 15px; top: 17px; color: #7b8c97; pointer-events: none; }
.password-wrap input { padding-right: 51px; }
.password-toggle { position: absolute; right: 4px; top: 4px; width: 43px; height: 43px; display: grid; place-items: center; border: 0; background: transparent; color: #71828c; border-radius: 7px; cursor: pointer; }
.password-toggle[hidden] { display: none; }
.password-toggle:hover { background: #eef3fb; color: var(--blue); }
.password-toggle svg { width: 19px; height: 19px; }
.eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .eye-slash { display: block; }
.form-options { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 2px 0 26px; font-size: 10px; }
.remember { display: flex; align-items: center; gap: 7px; cursor: pointer; color: var(--muted); }
.remember input { width: 15px; height: 15px; margin: 0; accent-color: var(--blue); }
.text-link { color: var(--blue); font-weight: 800; text-decoration: none; text-underline-offset: 3px; }
.text-link:hover { text-decoration: underline; }
.submit-button { display: flex; align-items: center; justify-content: center; gap: 25px; width: 100%; min-height: 51px; border: 0; border-radius: 10px; background: linear-gradient(135deg, #2d67e9, #245bda 62%, #1747b5); color: white; font-size: 12px; font-weight: 800; box-shadow: 0 7px 14px #245bda1c; cursor: pointer; translate: var(--button-x, 0) var(--button-y, 0); transition: transform .2s, translate .18s ease-out, background .2s, box-shadow .2s; }
.submit-button svg { width: 19px; height: 19px; transition: transform .2s; }
.submit-button:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 9px 19px #245bda2b; }
.submit-button:hover svg { transform: translateX(4px); }
.submit-button:disabled { opacity: .75; cursor: wait; transform: none; }
.register-line { font-size: 10px; text-align: center; margin: 23px 0 28px; line-height: 1.8; color: var(--muted); }
.register-line .text-link { margin-left: 4px; }
.panel-footer { display: flex; align-items: center; justify-content: center; gap: 7px; border-top: 1px solid var(--line); padding: 18px 0; font-size: 9px; color: var(--muted); }
.panel-footer svg { width: 14px; height: 14px; flex-shrink: 0; }
.field-error { font-size: 11px; line-height: 1.6; color: #b33333; margin: 8px 0 0; }
.form-notice { font-size: 12px; line-height: 1.6; padding: 12px; border-radius: 9px; background: #edf7f0; color: #286a45; margin-bottom: 20px; }
.login-footer { display: flex; justify-content: space-between; gap: 20px; font-size: 10px; color: var(--muted); padding: 18px 0 24px; }
@keyframes enter { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes card-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@media (hover: hover) and (pointer: fine) {
    .login-panel:hover { transform: translateY(-4px); border-color: #d7e3ef; box-shadow: 0 28px 90px #29455212, 0 5px 14px #29455208; }
    .workspace-art:hover .art-card { border-color: #e4ebf5; box-shadow: 0 18px 35px #1d435112, 0 3px 7px #1d435108; }
}
@media (min-width: 1500px) { .login-main { gap: 120px; } h1 { font-size: 72px; } }
@media (max-width: 1050px) {
    .login-header, .login-main, .login-footer { width: calc(100% - 64px); }
    .login-main { gap: 36px; grid-template-columns: 1fr 1fr; }
    h1 { font-size: 48px; letter-spacing: -2.4px; }
    .login-panel { padding: 32px 27px 0; }
    .workspace-art { scale: .82; transform-origin: left center; width: 460px; margin-right: -70px; }
}
@media (max-width: 780px) {
    .login-header, .login-main, .login-footer { width: min(460px, calc(100% - 40px)); }
    .login-header { padding: 25px 0 20px; }
    .brand-symbol { width: 38px; height: 38px; border-radius: 11px; }
    .header-note { display: none; }
    .login-main { display: flex; flex-direction: column; gap: 28px; min-height: auto; padding: 10px 0 24px; }
    .intro { width: 100%; }
    .eyebrow, .intro-copy, .workspace-art, .intro-foot { display: none; }
    h1 { font-size: 37px; margin: 0; line-height: 1.13; letter-spacing: -1.7px; }
    h1 br { display: none; }
    h1 > span { display: block; margin-top: 3px; letter-spacing: -.8px; }
    .login-panel { max-width: none; padding: 27px 25px 0; border-radius: 20px; }
    .welcome-icon { display: none; }
    h2 { font-size: 29px; }
    .field-group > label { font-size: 12px; }
    .input-wrap input { font-size: 16px; height: 53px; }
    .form-options, .register-line { font-size: 11px; }
    .submit-button { min-height: 53px; font-size: 13px; }
    .login-footer { justify-content: center; }
    .login-footer > span:last-child { display: none; }
    .ambient-one { width: 300px; height: 400px; }
    .ambient-two { width: 250px; height: 300px; }
}
@media (max-width: 359px) {
    .login-panel { padding-inline: 19px; }
    .form-options { font-size: 10px; gap: 6px; }
    h1 { font-size: 33px; }
}
/* Login centrat: formularul la mijloc, cardurile animate plutesc în jur. */
.login-centered { display: grid; grid-template-columns: 1fr; place-items: center; position: relative; }
.login-centered .intro { position: absolute; inset: 0; pointer-events: none; }
.login-centered .workspace-art { position: absolute; inset: 0; width: auto; height: auto; max-width: none; margin: 0; scale: 1; }
.login-centered .art-orbit { left: 50%; top: 50%; width: 980px; height: 420px; translate: -50% -50%; }
.login-centered .orbit-two { width: 860px; height: 520px; }
.login-centered .art-card { pointer-events: auto; }
.login-centered .art-orders { top: 14%; left: 4%; }
.login-centered .art-people { top: 44%; left: auto; right: 3%; }
.login-centered .art-flow { top: auto; bottom: 14%; left: 8%; }
.login-centered .point-one { top: 22%; left: auto; right: 16%; }
.login-centered .point-two { top: auto; bottom: 30%; left: 2%; }
.login-centered .login-panel { justify-self: center; z-index: 1; }
@media (hover: hover) and (pointer: fine) {
    .login-centered .art-card:hover { border-color: #e4ebf5; box-shadow: 0 18px 35px #1d435112, 0 3px 7px #1d435108; }
}
/* Pagina de login încape exact pe ecran, fără scroll. */
body.login-fit { height: 100vh; height: 100svh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.login-fit .login-main { flex: 1 1 auto; min-height: 0; padding: 20px 0 0; }
.login-fit .login-footer { flex: 0 0 auto; padding: 12px 0 18px; }
.login-fit .login-panel { padding-top: 34px; }
.panel-brand { display: flex; justify-content: center; margin: 0 auto 30px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-height: 700px) {
    .login-fit .login-panel { padding-top: 24px; }
    .panel-brand { margin-bottom: 20px; }
    .login-fit .field-group { margin-bottom: 14px; }
    .login-fit .form-options { margin-bottom: 18px; }
    .login-fit .register-line { margin: 16px 0 18px; }
    .login-fit .panel-footer { padding: 12px 0; }
}
@media (max-height: 560px) { body.login-fit { height: auto; min-height: 100svh; overflow: auto; } }
@media (max-width: 780px) { .login-centered .intro { display: none; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .cursor-glow { display: none; }
}

