/* Isolated AdminLTE 4 login experience. It does not alter the legacy POS shell. */
:root { color-scheme: light; }
body.upos-modern-auth { --auth-ink:#24213a; --auth-muted:#777489; --auth-line:#e6e5ee; --auth-primary:#7367f0; --auth-primary-deep:#5b4ee1; --auth-canvas:#f8f7fc; background:var(--auth-canvas); color:var(--auth-ink); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; margin:0; min-height:100vh; }
.modern-auth-shell { display:flex; flex-direction:column; min-height:100vh; position:relative; }
.modern-auth-shell::before { background:radial-gradient(circle at 12% 83%,rgba(115,103,240,.13),transparent 20%),radial-gradient(circle at 86% 12%,rgba(100,181,246,.12),transparent 20%); content:""; inset:0; pointer-events:none; position:absolute; }
.modern-auth-topbar,.modern-auth-content,.modern-auth-footer { position:relative; z-index:1; }
.modern-auth-topbar { align-items:center; display:flex; justify-content:space-between; margin:0 auto; max-width:1440px; padding:24px 40px; width:100%; z-index:20; }
.modern-auth-brand { align-items:center; color:var(--auth-ink); display:inline-flex; font-size:15px; font-weight:750; gap:10px; text-decoration:none; }
.modern-auth-brand:hover { color:var(--auth-primary); }.modern-auth-logo-wrap { align-items:center; background:#fff; border:1px solid var(--auth-line); border-radius:9px; display:inline-flex; height:35px; justify-content:center; overflow:hidden; padding:3px; width:35px; }.modern-auth-logo-wrap img { height:100%; max-width:100%; object-fit:contain; }
.modern-auth-links { align-items:center; display:flex; gap:20px; }.modern-auth-links>a,.modern-language-menu summary { color:#625f71; cursor:pointer; font-size:13px; font-weight:650; text-decoration:none; }.modern-auth-links>a:hover,.modern-language-menu summary:hover { color:var(--auth-primary); }.modern-auth-register-link { border:1px solid #d5d1fa; border-radius:7px; color:var(--auth-primary)!important; padding:8px 12px; }
.modern-language-menu { position:relative; z-index:21; }.modern-language-menu summary { list-style:none; padding:7px 4px; }.modern-language-menu summary::-webkit-details-marker { display:none; }.modern-language-menu summary::after { content:"⌄"; margin-left:5px; }.modern-language-menu summary:focus-visible { border-radius:5px; outline:2px solid var(--auth-primary); outline-offset:2px; }.modern-language-menu>div { background:#fff; border:1px solid var(--auth-line); border-radius:8px; box-shadow:0 12px 30px rgba(43,38,65,.12); min-width:170px; padding:6px; position:absolute; right:0; top:calc(100% + 6px); z-index:22; }.modern-language-menu>div a { border-radius:5px; color:var(--auth-ink); display:block; font-size:12px; padding:8px 10px; text-decoration:none; }.modern-language-menu>div a:hover { background:#f3f2ff; color:var(--auth-primary); }
.modern-auth-content { align-items:center; display:flex; flex:1; justify-content:center; padding:22px 40px 38px; }.modern-auth-alert { background:#ecfdf3; border:1px solid #b7efcc; border-radius:8px; color:#15763e; margin-bottom:16px; padding:12px 14px; }
.modern-login-layout { display:grid; grid-template-columns:minmax(300px,1.05fr) minmax(380px,.95fr); max-width:1080px; min-height:550px; width:100%; }.modern-login-layout--demo { grid-template-columns:minmax(260px,.85fr) minmax(360px,1fr) minmax(260px,.85fr); max-width:1300px; }
.modern-login-intro { background:linear-gradient(145deg,#342ca3 0%,#6256e6 50%,#8197ff 100%); border-radius:18px 0 0 18px; color:#fff; display:flex; flex-direction:column; justify-content:space-between; overflow:hidden; padding:54px; position:relative; }.modern-login-intro::after { border:60px solid rgba(255,255,255,.09); border-radius:50%; bottom:-132px; content:""; height:330px; position:absolute; right:-125px; width:330px; }.modern-login-intro-copy,.modern-login-benefits { position:relative; z-index:1; }.modern-login-eyebrow { color:inherit; font-size:10px; font-weight:800; letter-spacing:.14em; margin:0 0 13px; opacity:.8; }.modern-login-intro h1 { font-size:clamp(29px,3vw,43px); font-weight:720; letter-spacing:-.035em; line-height:1.1; margin:0; max-width:350px; }.modern-login-intro-copy>p { font-size:14px; line-height:1.75; margin:20px 0 0; max-width:355px; opacity:.82; }
.modern-login-benefits { display:grid; gap:17px; }.modern-login-benefits>div { align-items:center; display:flex; gap:13px; }.modern-login-benefits span { align-items:center; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.2); border-radius:7px; display:inline-flex; font-size:11px; font-weight:800; height:31px; justify-content:center; width:31px; }.modern-login-benefits p,.modern-login-footer-copy { font-size:12px; line-height:1.45; margin:0; opacity:.82; }.modern-login-benefits strong { font-size:13px; opacity:1; }.modern-login-footer-copy { max-width:355px; white-space:normal; }
.modern-login-card { background:#fff; border:1px solid var(--auth-line); border-left:0; border-radius:0 18px 18px 0; box-shadow:10px 10px 30px rgba(42,39,63,.06); display:flex; flex-direction:column; justify-content:center; padding:48px 54px; }.modern-login-card-heading { align-items:center; display:flex; gap:13px; margin-bottom:30px; }.modern-login-icon { align-items:center; background:#edebff; border-radius:9px; color:var(--auth-primary); display:inline-flex; font-size:21px; font-weight:800; height:38px; justify-content:center; width:38px; }.modern-login-card-heading p { color:var(--auth-ink); font-size:19px; font-weight:720; letter-spacing:-.02em; line-height:1.2; margin:0 0 4px; }.modern-login-card-heading h2 { color:var(--auth-muted); font-size:12px; font-weight:500; line-height:1.4; margin:0; }
.modern-login-form { display:grid; gap:19px; }.modern-field { display:grid; gap:7px; }.modern-field label,.modern-remember { color:#4a4759; font-size:12px; font-weight:700; }.modern-field-label-row { align-items:center; display:flex; justify-content:space-between; }.modern-field-label-row a { color:var(--auth-primary); font-size:11px; font-weight:700; text-decoration:none; }.modern-field-label-row a:hover,.modern-register-prompt a:hover { color:var(--auth-primary-deep); text-decoration:underline; }.modern-input-wrap { align-items:center; border:1px solid #dedde7; border-radius:7px; display:flex; min-height:45px; padding:0 12px; transition:border-color .15s,box-shadow .15s; }.modern-input-wrap:focus-within { border-color:var(--auth-primary); box-shadow:0 0 0 3px rgba(115,103,240,.13); }.modern-input-wrap>span { color:#9693a3; font-size:16px; font-weight:700; line-height:1; margin-right:10px; width:12px; }.modern-input-wrap input { background:transparent; border:0; color:var(--auth-ink); flex:1; font-size:13px; outline:0; padding:10px 0; width:100%; }.modern-input-wrap input::placeholder { color:#a5a3b0; }.modern-password-toggle { background:transparent; border:0; color:var(--auth-primary); cursor:pointer; font-size:11px; font-weight:750; padding:6px 0 6px 10px; }.modern-field small,.modern-recaptcha small { color:#dc3545; font-size:11px; }.modern-field.is-invalid .modern-input-wrap { border-color:#dc3545; }.modern-remember { align-items:center; cursor:pointer; display:inline-flex; gap:8px; margin:-2px 0 1px; width:max-content; }.modern-remember input { accent-color:var(--auth-primary); height:15px; margin:0; width:15px; }.modern-recaptcha { overflow:auto; }
.modern-login-submit { align-items:center; background:var(--auth-primary); border:0; border-radius:7px; box-shadow:0 5px 12px rgba(115,103,240,.25); color:#fff; cursor:pointer; display:flex; font-size:13px; font-weight:750; justify-content:space-between; min-height:45px; padding:0 17px; transition:background .15s,transform .15s; }.modern-login-submit:hover { background:var(--auth-primary-deep); transform:translateY(-1px); }.modern-login-submit span { font-size:19px; line-height:1; }.modern-register-prompt { color:var(--auth-muted); font-size:12px; margin:22px 0 0; text-align:center; }.modern-register-prompt a { color:var(--auth-primary); font-weight:750; text-decoration:none; }
.modern-demo-panel { background:#fff; border:1px solid var(--auth-line); border-left:0; border-radius:0 18px 18px 0; display:flex; flex-direction:column; justify-content:center; padding:40px; }.modern-demo-panel .modern-login-eyebrow { color:var(--auth-primary); opacity:1; }.modern-demo-panel h2 { color:var(--auth-ink); font-size:18px; font-weight:720; letter-spacing:-.02em; line-height:1.25; margin:0 0 22px; }.modern-demo-grid { display:grid; gap:8px; grid-template-columns:repeat(2,minmax(0,1fr)); }.modern-demo-grid button { background:#f8f7ff; border:1px solid #e7e4ff; border-radius:7px; color:#4a456a; cursor:pointer; font-size:11px; font-weight:700; min-height:52px; padding:7px; text-align:left; }.modern-demo-grid button:hover { background:#eeecff; border-color:#ccc7ff; color:var(--auth-primary); }.modern-demo-grid button span { color:var(--auth-primary); display:block; font-size:14px; margin-bottom:3px; }.modern-auth-footer { color:#9592a3; font-size:11px; padding:18px 40px 24px; text-align:center; }
@media (max-width:1100px) { .modern-login-layout--demo { grid-template-columns:minmax(280px,.9fr) minmax(360px,1.1fr); }.modern-demo-panel { border-left:1px solid var(--auth-line); border-radius:0 0 18px 18px; grid-column:1/-1; padding:28px 40px; }.modern-demo-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:760px) { .modern-auth-topbar { padding:17px 20px; }.modern-auth-brand { font-size:13px; }.modern-auth-links { gap:12px; }.modern-auth-links>a:not(.modern-auth-register-link) { display:none; }.modern-language-menu summary { padding:8px 4px; }.modern-auth-content { padding:18px 16px 30px; }.modern-login-layout,.modern-login-layout--demo { display:block; max-width:480px; min-height:0; }.modern-login-intro { border-radius:16px 16px 0 0; min-height:205px; padding:31px 30px; }.modern-login-intro h1 { font-size:28px; }.modern-login-intro-copy>p,.modern-login-benefits { display:none; }.modern-login-card { border-left:1px solid var(--auth-line); border-radius:0 0 16px 16px; padding:34px 28px; }.modern-demo-panel { border-radius:0 0 16px 16px; padding:26px 28px; }.modern-demo-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.modern-auth-footer { padding:15px 20px 19px; } }
@media (max-width:380px) { .modern-auth-topbar { justify-content:space-between; padding:14px 16px; }.modern-auth-brand { font-size:0; gap:0; }.modern-auth-logo-wrap { height:32px; width:32px; }.modern-auth-links { display:flex; gap:4px; }.modern-auth-register-link { display:none; }.modern-login-card { padding:29px 21px; } }
