/* Scoped to public login, registration and password recovery. */
@media screen {
html:has(body.leo-auth-modern){background:#f5f7fb!important;min-height:100%}
body.leo-auth-modern{--auth-bg:#f5f7fb;--auth-surface:#fff;--auth-text:#172b46;--auth-muted:#52647c;--auth-line:#dce4ef;--auth-soft:#eef4ff;background:var(--auth-bg)!important;color:var(--auth-text);min-height:100dvh}
html[data-theme=dark] body.leo-auth-modern{--auth-bg:#0c1729;--auth-surface:#16253b;--auth-text:#e9f1ff;--auth-muted:#b4c3d8;--auth-line:#344760;--auth-soft:#263c5d}
html[data-theme=dark]:has(body.leo-auth-modern){background:#0c1729!important}
.leo-auth-modern .right-col{min-height:100dvh;padding:0 clamp(14px,3vw,40px) 44px!important;display:block}
.leo-auth-modern .right-col>.row:first-child{position:relative;margin:0 0 24px;min-height:84px;border-bottom:1px solid var(--auth-line);display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-block:12px}
.leo-auth-modern .right-col>.row:first-child>.tw-absolute{position:static!important;display:flex;align-items:center;gap:12px;flex-wrap:wrap;max-width:100%}
.leo-auth-modern .right-col>.row:first-child>.tw-absolute:first-child a:first-child>div{width:60px!important;height:60px!important;border-radius:10px!important;margin:0!important;background:white!important}
.leo-auth-modern .right-col>.row:first-child>.tw-absolute a{color:var(--auth-text)!important;font-weight:650}
.leo-auth-modern .right-col>.row:first-child>.tw-absolute .tw-border-white{border-color:var(--auth-line)!important;background:var(--auth-surface)}
.leo-auth-modern .right-col>.row:first-child>.col-md-10{display:none}
.leo-auth-modern .leo-login-grid{max-width:1120px;margin:clamp(20px,6vh,65px) auto;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:24px;align-items:stretch}
.leo-auth-modern .leo-login-grid>.col-md-4{width:auto!important;float:none!important;padding:0!important;min-width:0}
/* Bootstrap's row clearfix must not become an extra grid/flex item. */
.leo-auth-modern .leo-login-grid::before,.leo-auth-modern .leo-login-grid::after,.leo-auth-modern .right-col>.row:first-child::before,.leo-auth-modern .right-col>.row:first-child::after{content:none!important;display:none!important}
.leo-auth-modern .leo-login-grid>.leo-login-story{grid-column:1;grid-row:1}
.leo-auth-modern .leo-login-grid>.leo-login-form-column{grid-column:2;grid-row:1}
.leo-auth-modern .leo-password-control{display:block;position:relative}
.leo-auth-modern .leo-password-control input{width:100%;padding-inline-end:52px!important}
.leo-auth-modern .leo-password-control #show_hide_icon{position:absolute;inset-block-start:50%;inset-inline-end:3px;transform:translateY(-50%);width:44px;height:40px;display:grid;place-items:center;border:0;background:transparent;color:var(--auth-text);border-radius:7px}
.leo-auth-modern .leo-login-spacer{display:none}
.leo-login-message{min-height:440px;height:100%;display:flex;flex-direction:column;justify-content:center;padding:clamp(28px,5vw,56px);border-radius:22px;color:#fff;background:radial-gradient(ellipse at 95% 5%,#2b68bb 0%,transparent 54%),linear-gradient(145deg,#10223d,#183f76 72%,#0d6a73);box-shadow:0 16px 40px #122f5520;overflow:hidden}
.leo-login-message h1{font-size:clamp(32px,4vw,49px);line-height:1.09;font-weight:750;letter-spacing:-.035em;color:white!important;margin:20px 0}
.leo-login-message p{font-size:16px;line-height:1.65;color:#d9e7fa;max-width:380px}
.leo-auth-eyebrow{font-size:11px;letter-spacing:.15em;color:#b6d4ff;font-weight:750}
.leo-login-features{display:grid;gap:12px;margin-top:24px;color:#e6f0ff;font-size:14px;font-weight:600}.leo-login-features i{width:24px;color:#9edbdc}
.leo-auth-modern .leo-auth-card{background:var(--auth-surface)!important;color:var(--auth-text)!important;border:1px solid var(--auth-line);border-radius:22px!important;box-shadow:0 8px 24px #122f5510!important;padding:clamp(20px,4vw,40px)!important;min-width:0}
.leo-auth-modern .leo-login-form-column .leo-auth-card{margin:0!important;height:100%;display:flex;flex-direction:column;justify-content:center}
.leo-auth-modern .leo-auth-card h1{color:var(--auth-text)!important;font-size:clamp(24px,3vw,31px)!important;letter-spacing:-.025em;font-weight:750;line-height:1.2;margin-top:0}
.leo-auth-modern .leo-auth-card h2,.leo-auth-modern .leo-auth-subtitle,.leo-auth-modern .leo-auth-card .tw-text-gray-500{color:var(--auth-muted)!important;line-height:1.5}
.leo-auth-modern .leo-auth-card .tw-text-black,.leo-auth-modern .leo-auth-card legend,.leo-auth-modern .leo-auth-card label{color:var(--auth-text)!important}
.leo-auth-modern .leo-auth-card .form-control,.leo-auth-modern #login-form input:not([type=checkbox]):not([type=hidden]),.leo-auth-modern .select2-container--default .select2-selection--single{background:var(--auth-surface)!important;color:var(--auth-text)!important;border:1px solid var(--auth-line)!important;min-height:42px;border-radius:9px!important;font-size:14px}
.leo-auth-modern #login-form input[type=password]{padding-inline-end:44px}.leo-auth-modern .form-control:focus,.leo-auth-modern #login-form input:focus,.leo-auth-modern .leo-auth-card :focus-visible{outline:2px solid #528bf3!important;outline-offset:2px}
.leo-auth-modern #login-form button[type=submit],.leo-auth-modern #business_register_form .actions a[href="#next"],.leo-auth-modern #business_register_form .actions a[href="#finish"]{background:linear-gradient(135deg,#2055b8,#234ba0)!important;color:white!important;border-radius:9px!important;font-weight:700;min-height:42px}
.leo-auth-modern #passkey-login-btn{background:var(--auth-soft)!important;border-color:var(--auth-line)!important;color:var(--auth-text)!important}
.leo-auth-modern #show_hide_icon svg{stroke:currentColor;color:var(--auth-text)}
.leo-auth-modern .leo-login-form-column .alert{border-radius:10px}
.leo-reg-shell{max-width:980px;margin:0 auto 35px;min-width:0}.leo-registration-journey{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}
.leo-registration-journey>div{display:flex;gap:12px;align-items:center;min-width:0;padding:14px 16px;background:var(--auth-surface);border:1px solid var(--auth-line);border-radius:14px;color:var(--auth-muted)}
.leo-registration-journey>div.is-current{background:var(--auth-soft);border-color:#82a5e4;color:var(--auth-text)}
.leo-registration-journey span{flex:0 0 34px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-weight:750;background:#dce4ef;color:#29446b}.leo-registration-journey .is-current span{background:#2055b8;color:white}.leo-registration-journey strong,.leo-registration-journey small{display:block;line-height:1.35}.leo-registration-journey small{margin-top:3px;font-size:12px}
.leo-auth-modern #business_register_form .steps>ul{display:flex;gap:6px;margin:12px 0;flex-wrap:nowrap}.leo-auth-modern #business_register_form .steps>ul>li{width:auto!important;flex:1 1 0;min-width:0;float:none}.leo-auth-modern #business_register_form .steps a{margin:0;padding:12px 8px!important;white-space:normal;border-radius:8px!important;background:var(--auth-soft);color:var(--auth-text);font-size:13px}.leo-auth-modern #business_register_form .steps .current a{background:#2055b8;color:white}.leo-auth-modern #business_register_form .steps .done a{background:#dcefe6;color:#17563d}
.leo-auth-modern #business_register_form .content{min-height:0!important;background:var(--auth-surface)!important;margin:0!important;border:1px solid var(--auth-line);border-radius:13px!important;padding:0!important;overflow:visible!important}
.leo-auth-modern #business_register_form .content>.body{position:relative!important;width:100%!important;height:auto!important;min-height:0!important;padding:clamp(10px,2vw,20px)!important;float:none!important;overflow:visible!important}.leo-auth-modern #business_register_form .content>.body[aria-hidden=true]{display:none!important}
.leo-auth-modern #business_register_form fieldset legend{border-bottom:1px solid var(--auth-line);font-size:19px;font-weight:700;padding-bottom:8px;margin-bottom:10px}.leo-reg-description{color:var(--auth-muted);margin:0 0 14px}.leo-reg-defaults{margin:0 0 16px;background:var(--auth-soft);padding:12px;border-radius:8px;color:var(--auth-text);font-size:13px}
.leo-auth-modern #business_register_form .input-group-addon{background:var(--auth-soft)!important;border:1px solid var(--auth-line)!important;color:var(--auth-muted)!important}.leo-auth-modern #business_register_form .select2-selection__rendered{color:var(--auth-text)!important;line-height:40px}.leo-auth-modern #business_register_form .select2-selection__arrow{height:40px}
.leo-auth-modern #business_register_form .actions{margin-top:16px}.leo-auth-modern #business_register_form .actions a{padding:11px 18px!important;font-weight:650;min-height:42px}.leo-auth-modern #business_register_form .actions .disabled a{background:var(--auth-soft);color:var(--auth-muted)}
html[data-theme=dark] .leo-auth-modern #business_register_form .leo-otp-panel{background:var(--auth-soft)!important;border-color:var(--auth-line)!important}html[data-theme=dark] .leo-auth-modern #business_register_form .leo-otp-heading,html[data-theme=dark] .leo-auth-modern #business_register_form .leo-otp-note,html[data-theme=dark] .leo-auth-modern #business_register_form .leo-otp-feedback{color:var(--auth-text)!important}html[data-theme=dark] .leo-auth-modern #business_register_form .leo-otp-feedback.leo-otp-success{color:#8ee2b3!important}html[data-theme=dark] .leo-auth-modern #business_register_form .leo-otp-feedback.leo-otp-error{color:#ffb0b8!important}
@media(max-width:767px){.leo-auth-modern .right-col>.row:first-child{min-height:64px;margin-bottom:16px}.leo-auth-modern .leo-login-grid{grid-template-columns:minmax(0,1fr);gap:16px;margin:12px auto}.leo-login-message{min-height:0;padding:23px}.leo-login-message h1{font-size:29px;margin:12px 0}.leo-login-features{display:none}.leo-registration-journey{gap:6px}.leo-registration-journey>div{padding:10px 8px;gap:7px}.leo-registration-journey span{width:26px;height:26px;flex-basis:26px}.leo-registration-journey strong{font-size:12px}.leo-registration-journey small{font-size:10px}.leo-auth-modern #business_register_form .steps a{font-size:11px;padding:9px 3px!important}.leo-auth-modern .leo-auth-card .form-control,.leo-auth-modern #login-form input:not([type=checkbox]):not([type=hidden]){font-size:16px!important}.leo-auth-modern .leo-auth-card{padding:16px!important}.leo-auth-modern #business_register_form .actions>ul{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}.leo-auth-modern #business_register_form .actions>ul>li{margin:0}}
@media(prefers-reduced-motion:reduce){.leo-auth-modern *{scroll-behavior:auto!important}}
@media(max-width:767px){.leo-auth-modern .leo-login-grid>.leo-login-story,.leo-auth-modern .leo-login-grid>.leo-login-form-column{grid-column:1;grid-row:auto}}
}

@media screen{.leo-auth-modern .right-col>.row:first-child summary{color:var(--auth-text)!important}.leo-auth-modern .right-col>.row:first-child .tw-dw-dropdown-content{background:var(--auth-surface)!important;color:var(--auth-text)!important}.leo-auth-modern #business_register_form .content .leo-otp-code-row .form-control{min-width:0}.leo-auth-modern #business_register_form .content .body .form-control.error{border-color:#ba3047!important}}

@media screen{
.leo-auth-modern .leo-recovery-shell{width:100%;max-width:480px;min-width:0;margin:clamp(24px,7vh,72px) auto 32px}
.leo-auth-modern .leo-recovery-shell .leo-auth-card{margin:0!important}
.leo-auth-modern .leo-recovery-shell .form-group label{display:flex;flex-direction:column;gap:6px;width:100%}
.leo-auth-modern .leo-recovery-shell input:not([type=hidden]){width:100%;min-width:0;min-height:48px;background:var(--auth-surface)!important;color:var(--auth-text)!important;border:1px solid var(--auth-line)!important;border-radius:9px;padding:10px 12px;font-size:16px}
.leo-auth-modern .leo-recovery-shell button[type=submit]{width:100%;min-height:48px;border:0;border-radius:9px;background:linear-gradient(135deg,#2055b8,#234ba0)!important;color:white!important;font-weight:700;padding:10px 14px;white-space:normal}
}
