/* Authentication is a standalone product surface, never a reduced workspace shell. */
body:not(.app-authed){display:block;min-height:100vh;background:#e8eef5}
body:not(.app-authed) .sidebar{display:none!important}
body:not(.app-authed) .main{display:block;min-height:100vh;padding:0}
body:not(.app-authed) .login{display:grid!important}

.auth-shell{width:min(1120px,calc(100% - 28px));min-height:min(680px,calc(100vh - 28px));margin:0 auto!important;padding:0!important;grid-template-columns:minmax(0,1.02fr) minmax(400px,.98fr);align-items:stretch;border:1px solid #d9e1ea!important;border-radius:12px!important;background:#fff!important;box-shadow:0 26px 70px rgba(15,23,42,.14)!important;overflow:hidden}
.auth-shell::before{content:'';position:fixed;inset:0;z-index:-1;background:linear-gradient(135deg,#f8fafc 0%,#edf2f7 54%,#e4ebf3 100%)}
.auth-intro{position:relative;display:flex;flex-direction:column;padding:42px 48px;background:#172236;color:#fff;overflow:hidden}
.auth-intro::before{content:'';position:absolute;width:420px;height:420px;right:-224px;bottom:-224px;border:1px solid rgba(255,255,255,.10);border-radius:50%;box-shadow:0 0 0 46px rgba(255,255,255,.025),0 0 0 93px rgba(255,255,255,.018)}
.auth-brand{position:relative;display:flex;align-items:center;gap:11px;color:#fff;font-size:17px;font-weight:800}
.auth-brand img{width:34px;height:34px;padding:5px;border-radius:9px;background:#ec6b28;box-shadow:0 7px 18px rgba(0,0,0,.18)}
.auth-intro-copy{position:relative;margin:auto 0 0;padding-bottom:88px}
.auth-intro .eyebrow{margin:0 0 17px;color:#f9a476;font-size:11px;font-weight:800;letter-spacing:0}
.auth-intro h1{margin:0;color:#fff;font-size:34px!important;line-height:1.35;letter-spacing:0!important}
.auth-intro .auth-intro-copy p:last-child{max-width:305px;margin:17px 0 0;color:#b9c4d2;font-size:14px;line-height:1.8}
.auth-version{position:relative;margin:0;color:#8e9baa;font-size:12px}
.auth-panel{display:flex;flex-direction:column;justify-content:center;padding:62px 68px;background:#fff}
.auth-panel-heading{margin:0 0 30px}
.auth-panel-heading h2{margin:0;color:#101828;font-size:25px;line-height:1.3;letter-spacing:0}
.auth-panel-heading p{margin:8px 0 0;color:#667085;font-size:13px;line-height:1.6}
.auth-tabs{display:flex;gap:26px;margin:0 0 27px;border-bottom:1px solid #e4e7ec}
.auth-tabs button{height:38px;padding:0;background:transparent!important;color:#667085!important;border:0!important;border-radius:0!important;box-shadow:none!important;font-size:14px;font-weight:700}
.auth-tabs button.active{color:#e06120!important;border-bottom:2px solid #e06120!important}
.auth-form{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
.auth-form.hidden{display:none!important}
.auth-form input{height:48px;padding:0 14px;border:1px solid #d0d5dd;border-radius:7px;background:#fff;color:#101828;box-shadow:none;font-size:14px}
.auth-form input::placeholder{color:#98a2b3}
.auth-form input:focus{border-color:#e06120;box-shadow:0 0 0 3px rgba(224,97,32,.13)}
.auth-form button{height:48px;margin-top:8px;border-radius:7px;background:#e06120!important;color:#fff!important;box-shadow:0 8px 18px rgba(209,78,17,.19);font-weight:750}
.auth-form button:hover{background:#c95117!important;transform:none}
.auth-form .auth-secondary-action{margin-top:0;background:#fff!important;color:#475467!important;border:1px solid #d0d5dd!important;box-shadow:none!important;font-weight:700}
.auth-form .auth-secondary-action:hover{background:#f8fafc!important;color:#101828!important;border-color:#98a2b3!important}
.auth-error-layer{position:fixed;inset:0;z-index:5000;display:grid;place-items:center;padding:20px;background:rgba(16,24,40,.42);backdrop-filter:blur(5px);animation:authErrorFade .16s ease-out}
.auth-error-layer.hidden{display:none!important}
.auth-error-dialog{position:relative;width:min(410px,calc(100vw - 32px));padding:28px;border:1px solid rgba(255,255,255,.7);border-radius:12px;background:#fff;color:#101828;box-shadow:0 28px 80px rgba(15,23,42,.26);animation:authErrorLift .2s ease-out}
.auth-error-close{position:absolute;top:14px;right:14px;width:34px;height:34px;min-height:34px;padding:0;border:0;border-radius:7px;background:#f2f4f7!important;color:#667085!important;box-shadow:none!important;font-size:21px;line-height:1}
.auth-error-close:hover{background:#e4e7ec!important;color:#344054!important;transform:none}
.auth-error-icon{display:grid;width:48px;height:48px;place-items:center;margin-bottom:20px;border:1px solid #fed7aa;border-radius:10px;background:#fff7ed;color:#d54b16}
.auth-error-icon svg{width:25px;height:25px}
.auth-error-copy{padding-right:12px}.auth-error-kicker{margin:0 0 7px;color:#d54b16;font-size:12px;font-weight:800}.auth-error-copy h2{margin:0;color:#101828;font-size:21px;line-height:1.35;letter-spacing:0}.auth-error-copy>p:last-child{margin:10px 0 0;color:#667085;font-size:13px;line-height:1.7}
.auth-error-action{width:100%;height:44px;margin-top:24px;border-radius:7px;background:#172236!important;color:#fff!important;box-shadow:none!important;font-size:14px;font-weight:760}
.auth-error-action:hover{background:#24334d!important;transform:none}
@keyframes authErrorFade{from{opacity:0}to{opacity:1}}@keyframes authErrorLift{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
@media(min-width:761px){body:not(.app-authed) .main{display:grid;place-items:center}}
@media(max-width:760px){.auth-shell{width:100%;min-height:100vh;grid-template-columns:1fr;border:0!important;border-radius:0!important;box-shadow:none!important}.auth-intro{min-height:270px;padding:32px 28px}.auth-intro-copy{padding-bottom:25px}.auth-intro h1{font-size:28px!important}.auth-version{display:none}.auth-panel{padding:38px 28px 56px}.auth-panel-heading{margin-bottom:25px}.auth-shell::before{position:absolute}.auth-form input,.auth-form button{height:49px}}
