/* Insan Agraria authentication: full viewport, a curved brand panel, and flat controls. */
body.auth-page{background:#fff;-webkit-font-smoothing:antialiased}
.login-screen{display:block;min-height:100svh;height:auto;padding:0;overflow:visible;background:#fff}
.auth-shell{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);width:100%;max-width:none;min-height:100svh;margin:0;border:0;border-radius:0;background:#fff;box-shadow:none;overflow:hidden}
.auth-form-panel{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:100svh;padding:30px clamp(28px,5vw,96px) 22px;border:0;border-radius:0;background:#fff;box-shadow:none}
.auth-form-panel::after{display:none}
.auth-form-content{width:100%;max-width:382px;margin:auto 0;padding:20px 0}
.auth-form-panel .auth-login-logo{display:block;width:256px;max-width:100%;height:auto;aspect-ratio:3340/930;object-fit:contain;margin:0 0 32px;transform:none;filter:none}
.auth-form-content>.overline{font-size:10px;letter-spacing:.12em;color:#7b889b}
.auth-form-panel h2{font-size:31px;line-height:1.25;font-weight:700;letter-spacing:-.9px;color:#0d2d5b;margin:8px 0 9px}
.auth-form-content>.muted{font-size:13px;line-height:1.7;color:#6a7b90}
.auth-form-panel form{margin-top:28px}
.auth-form-panel label{font-size:12px;font-weight:600;line-height:1.5;color:#3b506a;margin-bottom:8px}
.auth-form-panel .input-icon{margin-bottom:20px}
.auth-form-panel .input-icon input,.auth-form-panel .otp-input,.auth-form-panel .otp-input.backup-input{min-height:49px;font-family:inherit;font-size:14px;font-weight:400;letter-spacing:normal;line-height:1.5;color:#243952;background:#f3f6fa;border:1px solid #edf1f6;border-radius:11px;box-shadow:none}
.auth-form-panel .input-icon input{padding:13px 43px!important}
.auth-form-panel .otp-input{text-align:left;padding:13px 14px}
.auth-form-panel .input-icon input::placeholder,.auth-form-panel .otp-input::placeholder{color:#8a98aa}
.auth-form-panel .input-icon input:focus,.auth-form-panel .otp-input:focus{background:#fff;border-color:#6a88aa;box-shadow:0 0 0 3px #0d2d5b08;outline:none}
.auth-form-panel .input-icon>span{left:15px;color:#7c8da3}
.auth-form-panel .input-icon>span svg{width:17px;height:17px}
.auth-form-panel .input-icon>.icon-button{right:7px;top:8px;width:33px;height:33px;background:none;border:0;border-radius:8px;color:#70829a;box-shadow:none}
.auth-form-panel .input-icon>.icon-button:hover{background:#e8eef5}
.auth-form-panel .label-row{gap:10px;align-items:center;margin-bottom:8px}
.auth-form-panel .label-row label{margin:0}
.auth-form-panel .label-row .text-button{padding:0;border:0;border-radius:0;background:none;box-shadow:none;transform:none;font-size:11px;font-weight:600;white-space:nowrap;color:#315d8b}
.auth-form-panel .label-row .text-button:hover{text-decoration:underline}
.auth-form-panel .check-label{gap:9px;font-size:11px;font-weight:400;color:#708198}
.auth-form-panel .check-label input{width:15px;height:15px}
.auth-form-panel .login-submit{width:100%;min-height:48px;justify-content:space-between;gap:12px;padding:13px 17px;margin:22px 0 0;border:1px solid #0d2d5b;border-radius:11px;background:#0d2d5b;color:#fff;font-size:13px;font-weight:600;letter-spacing:.01em;box-shadow:none;transform:none;transition:background-color .18s ease,border-color .18s ease}
.auth-form-panel .login-submit:hover:not(:disabled){background:#194578;border-color:#194578;box-shadow:none;transform:none}
.auth-form-panel .login-submit:active:not(:disabled){background:#082346;box-shadow:none;transform:none}
.auth-form-panel .login-submit:disabled{opacity:.6;transform:none}
.auth-form-panel .login-submit svg{width:18px;height:18px}
.auth-form-panel .invite-note{display:flex;align-items:center;justify-content:center;gap:8px;margin:22px 0 0;padding:18px 0 0;border-top:1px solid #edf1f5;font-size:10px;line-height:1.6;color:#79889d}
.auth-form-panel .invite-note svg{width:14px;height:14px;color:#a5864c}
.auth-form-panel .form-error{font-size:12px;line-height:1.6;margin:12px 0 0}
.auth-form-panel .password-hint{font-size:12px;line-height:1.6;color:#596b83;margin-top:8px}
.auth-copyright{width:100%;max-width:420px;margin:16px auto 0;text-align:center;font-size:9px;line-height:1.8;color:#8090a3;flex-shrink:0;text-wrap:balance}
.auth-copyright small{display:block;max-width:none;margin:4px auto 0;font-size:9px;line-height:1.7;color:#72839b;text-align:center;text-wrap:balance}
.auth-brand-panel{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;min-width:0;min-height:100svh;padding:52px clamp(130px,12vw,230px) 40px clamp(56px,7vw,135px);border:0;border-radius:clamp(36px,5vw,86px) 0 0 clamp(36px,5vw,86px);background:linear-gradient(145deg,#123b70 0%,#0d2d5b 56%,#102c50 100%);box-shadow:none}
.auth-brand-panel::before{content:'';position:absolute;left:-18%;right:auto;top:auto;bottom:-42%;width:120%;height:85%;border:1px solid #ffffff0e;border-radius:50%;background:radial-gradient(ellipse at center,#45669144,transparent 70%);opacity:1;z-index:-1}
.auth-brand-panel::after{content:'';position:absolute;inset:-30px -18px -30px auto;width:clamp(125px,12vw,230px);height:auto;border:0;border-radius:0;background:url('assets/tenun-cloth.svg') no-repeat center/100% 100%;opacity:.9;box-shadow:none;z-index:0;pointer-events:none}
.auth-brand-top{position:relative;z-index:1;display:flex;align-items:center;gap:12px;color:#dce5f1;font-size:10px;line-height:1.65;letter-spacing:.14em;font-weight:500}
.brand-rule{width:27px;height:1px;background:#d4a853;flex-shrink:0}
.auth-brand-copy{position:relative;z-index:1;margin:44px 0 60px}
.auth-brand-copy .eyebrow{display:block;font-size:9px;line-height:1.7;letter-spacing:.14em;color:#adbed4}
.auth-brand-copy h1{font-size:clamp(44px,4.15vw,72px);font-weight:650;line-height:1.13;letter-spacing:-2px;margin:21px 0;color:#fff}
.auth-brand-copy h1 span{display:block;margin-top:14px;font-size:clamp(23px,2.05vw,35px);line-height:1.35;letter-spacing:-.7px;color:#e1bd76;font-weight:500}
.auth-brand-copy p{max-width:340px;font-size:13px;line-height:1.85;color:#c0cee0}
.auth-feature-row{display:flex;flex-wrap:wrap;gap:10px 17px;margin-top:29px}
.auth-feature-row span{display:flex;align-items:center;gap:7px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#c5d2e4;font-size:10px;font-weight:400}
.auth-feature-row span::before{content:'';width:4px;height:4px;border-radius:50%;background:#e1bd76}
.auth-brand-foot{position:relative;z-index:1;display:flex;align-items:center;gap:9px;font-size:10px;line-height:1.7;color:#acbfd6}
.auth-brand-foot .gold-dot{background:#d4a853;box-shadow:none}
.auth-watermark{display:none}
.auth-form-panel #mfa-form{margin-top:20px}
.auth-form-panel:has(#mfa-panel:not([hidden])) .auth-login-logo{width:218px;margin-bottom:24px}
/* One quiet welcome on first opening a tab. Session checks run in parallel. */
.splash{gap:0;background:#fff;padding:32px 24px}
.splash .boot-logo{display:block;width:84px;height:88px;object-fit:contain;margin:0 0 25px;transform:none;filter:none;animation:agraria-breathe 2.4s ease-in-out infinite}
.welcome-copy{text-align:center;margin-bottom:28px}
.splash .welcome-copy .welcome-eyebrow{font-size:10px;font-weight:500;letter-spacing:.19em;color:#79879b;line-height:1.6;margin:0}
.splash .welcome-copy h1{margin:10px 0 12px;font-size:clamp(25px,4vw,32px);line-height:1.25;font-weight:700;letter-spacing:.025em;color:#0d2d5b}
.splash .welcome-copy>p:last-child{font-size:12px;line-height:1.8;color:#71849e;letter-spacing:normal;margin:0}
.splash .boot-message{display:flex;align-items:center;justify-content:center;gap:9px;max-width:400px;padding:0}
.splash #boot-status{font-size:11px;line-height:1.7;color:#7b8ba1;letter-spacing:normal;margin:0}
.splash .loading-spinner{width:14px;height:14px;flex-basis:14px;border-width:1.5px;border-top-color:#b48c43}
.splash #skip-splash{margin-top:20px;font-size:12px}
.splash.is-returning .boot-logo{width:48px;height:50px;margin-bottom:20px;animation:none}
@keyframes agraria-breathe{0%,100%{transform:translateY(0) scale(1);opacity:.94}50%{transform:translateY(-4px) scale(1.015);opacity:1}}
/* Shared flat button treatment, including dashboard, crop, and auth dialogs. */
button.button,a.button,button.icon-button,button.text-button{box-shadow:none!important;transform:none!important;background-image:none!important;transition:background-color .18s,color .18s,border-color .18s}
.button.primary,body.auth-page .modal .button.primary,.app-screen .button.primary{background:#0d2d5b!important;border-color:#0d2d5b;box-shadow:none!important;transform:none!important}
.button.primary:hover:not(:disabled),body.auth-page .modal .button.primary:hover:not(:disabled),.app-screen .button.primary:hover:not(:disabled){background:#194578!important;border-color:#194578}
.button.primary:active:not(:disabled){background:#082346!important}
.button.secondary{background:#fff!important;border-color:#d9e2ed;box-shadow:none!important}
.button.secondary:hover:not(:disabled){background:#f2f5f9!important}
.nav-item.active{background:#0d2d5b;box-shadow:none}
.account-trigger{box-shadow:0 0 0 1px #d2dceb}
.account-menu{box-shadow:0 18px 50px #20365d26}
body.auth-page .modal{border:1px solid #e1e7ef;box-shadow:0 20px 60px #0d2d5b24}
.workspace-pill{display:inline-flex;align-items:center;gap:6px;color:var(--navy);font-size:9px;font-weight:700;letter-spacing:.1em}.workspace-pill span{width:5px;height:5px;background:var(--gold);border-radius:50%}
.button[aria-busy=true]{cursor:wait;opacity:.7}.inline-status{margin-bottom:20px}.app-loading{padding:80px 20px;text-align:center;color:#6b7893}.server-note{padding:12px 15px;background:#f7f9fc;border:1px solid #e9eef5;border-radius:10px;font-size:11px;color:#75859e;margin-bottom:20px}.invite-link{width:100%;padding:10px;font-size:11px;border-radius:8px;overflow-wrap:anywhere;background:#f5f7fb;color:#3b517c}
@media(min-width:1600px) and (min-height:850px){.auth-form-content{max-width:400px}.auth-form-panel .auth-login-logo{width:280px;margin-bottom:40px}.auth-form-panel h2{font-size:34px}.auth-brand-panel{padding-top:68px;padding-bottom:55px}.auth-brand-panel::after{width:230px}.auth-brand-copy p{font-size:15px}.auth-brand-copy .eyebrow,.auth-brand-top{font-size:11px}.auth-feature-row span,.auth-brand-foot{font-size:11px}}
@media(min-width:761px) and (max-width:1050px){.auth-form-panel{padding-left:32px;padding-right:32px}.auth-form-panel h2{font-size:27px}.auth-brand-panel{padding-left:48px;padding-right:105px;border-radius:44px 0 0 44px}.auth-brand-panel::after{width:115px}.auth-brand-copy h1{font-size:43px}.auth-brand-copy h1 span{font-size:23px}.auth-brand-copy p{font-size:12px}.auth-brand-copy .eyebrow{font-size:8px}.auth-feature-row{flex-direction:column;gap:10px}.auth-brand-foot{font-size:9px}}
@media(max-width:760px){.auth-shell{display:block}.auth-brand-panel{display:none}.auth-form-panel{padding:24px 26px 18px}.auth-form-panel::before{content:'';position:absolute;inset:0 0 auto;height:9px;background:#0d2d5b url('assets/tenun-ntt.svg') repeat-x center/200px 70px;border-bottom:1px solid #d4a853}.auth-form-content{max-width:390px;padding:16px 0}.auth-form-panel .auth-login-logo{width:230px;margin-bottom:29px}.auth-form-panel h2{font-size:28px}.auth-form-content>.overline{font-size:9px}.auth-form-panel .input-icon input,.auth-form-panel .otp-input,.auth-form-panel .otp-input.backup-input{font-size:16px}.auth-copyright{max-width:340px}.auth-copyright small{font-size:9px}.auth-form-panel:has(#mfa-panel:not([hidden])) .auth-login-logo{width:195px;margin-bottom:18px}.workspace-pill{display:none}}
@media(max-height:740px) and (min-width:761px){.auth-form-panel{padding-top:20px;padding-bottom:18px}.auth-form-content{padding:10px 0}.auth-form-panel .auth-login-logo{width:225px;margin-bottom:22px}.auth-form-panel h2{font-size:28px}.auth-form-panel form{margin-top:22px}.auth-form-panel .input-icon{margin-bottom:17px}.auth-form-panel .invite-note{margin-top:18px;padding-top:16px}.auth-copyright{margin-top:12px}.auth-brand-panel{padding-top:34px;padding-bottom:30px}.auth-brand-copy{margin:28px 0 35px}.auth-brand-copy h1{font-size:46px}.auth-brand-copy h1 span{font-size:25px}.auth-feature-row{margin-top:22px}}
@media(max-height:680px) and (max-width:760px){.auth-form-panel{padding:18px 24px 14px}.auth-form-content{padding:6px 0}.auth-form-panel .auth-login-logo{width:188px;margin-bottom:16px}.auth-form-content>.overline{display:none}.auth-form-panel h2{font-size:25px;margin:6px 0}.auth-form-content>.muted{font-size:12px}.auth-form-panel form{margin-top:18px}.auth-form-panel label{font-size:12px;margin-bottom:6px}.auth-form-panel .label-row{margin-bottom:6px}.auth-form-panel .label-row label{margin:0}.auth-form-panel .input-icon{margin-bottom:14px}.auth-form-panel .input-icon input{min-height:46px;padding-top:10px!important;padding-bottom:10px!important}.auth-form-panel .input-icon>.icon-button{top:6px}.auth-form-panel .login-submit{margin-top:17px}.auth-form-panel .invite-note{margin-top:16px;padding-top:14px}.auth-copyright{margin-top:15px;font-size:8px;line-height:1.6}.auth-copyright small{font-size:8px;line-height:1.6}}
@media(max-height:600px) and (min-width:761px){.auth-form-panel .auth-login-logo{width:190px;margin-bottom:16px}.auth-form-content>.overline{display:none}.auth-form-panel h2{font-size:26px}.auth-form-panel .input-icon{margin-bottom:14px}.auth-form-panel form{margin-top:18px}.auth-form-panel .login-submit{margin-top:17px}.auth-form-panel .invite-note{margin-top:16px;padding-top:12px}}
@media(prefers-reduced-motion:reduce){.splash .boot-logo,.splash .loading-spinner{animation:none;transform:none;opacity:1}button.button,a.button,button.icon-button,button.text-button{transition:none}}

/* Insan Agraria: quiet loading, centered codes, and a single circular account control. */
:root{--gold:#d4a853;--bg:#f7f8fa}
.auth-form-panel .otp-input,.auth-form-panel .otp-input.backup-input{font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;text-align:center;font-variant-numeric:tabular-nums;letter-spacing:.25em;padding-left:calc(14px + .25em);font-weight:400}
.auth-form-panel .otp-input.backup-input{letter-spacing:.02em;padding-left:14px}
.sidebar-brand b{display:block;font-size:17px;line-height:1.3;letter-spacing:-.4px;white-space:nowrap}
.sidebar-brand small{font-size:7px;letter-spacing:.1em}
.sidebar-brand .brand-icon img{padding:2px 5px}
#top-avatar.account-trigger{width:38px;height:38px;min-width:38px;flex:0 0 38px;aspect-ratio:1;border:0;border-radius:50%;padding:0;margin:0;display:grid;place-items:center;overflow:hidden;box-shadow:0 0 0 1px #d2dceb;line-height:1;font-size:12px}
#top-avatar.account-trigger img{display:block;width:100%;height:100%;max-width:none;margin:0;padding:0;border-radius:50%;object-fit:cover;object-position:center}
.account-person>.avatar,#account-photo-preview>.avatar{border-radius:50%;overflow:hidden;flex-shrink:0}
.account-person .avatar img{display:block;width:100%;height:100%;object-fit:cover}
.loading-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;padding:80px 24px;text-align:center;min-height:200px}
.loading-panel .loading-brand{display:block;width:42px;height:55px;object-fit:contain;animation:agraria-loading 1.8s ease-in-out infinite}
.loading-panel p{font-size:12px;line-height:1.6;color:#718198;margin:0}
.modal .loading-panel{padding:28px 14px;min-height:140px}
.authenticator-brand-help{padding:15px 17px;border:1px solid #e0e7f0;border-radius:11px;background:#f8fafc;font-size:12px;line-height:1.7;margin:0 0 20px}
.authenticator-brand-help summary{cursor:pointer;color:#304a70;font-weight:600}
.authenticator-brand-help p{margin:10px 0 0;color:#667b94}
@keyframes agraria-loading{50%{opacity:.55;transform:translateY(-2px)}}
@media(prefers-reduced-motion:reduce){.loading-panel .loading-brand{animation:none}}
