:root{--auth-primary:#e31b2d;--auth-dark:#0f172a;--auth-muted:#64748b;--auth-line:#e3e8ef;--auth-soft:#fff4f5}
.auth-page{min-height:100vh;display:grid;grid-template-columns:minmax(380px,.92fr) minmax(0,1.08fr);margin:0;background:#fff;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--auth-dark)}
.auth-page *{box-sizing:border-box}.auth-page h1,.auth-page h2,.auth-page h3,.auth-page strong,.auth-page button{font-family:"Plus Jakarta Sans",Inter,system-ui,sans-serif}
.auth-branding{position:relative;min-height:100vh;padding:42px clamp(30px,5vw,74px);display:flex;flex-direction:column;overflow:hidden;color:#fff;background:linear-gradient(145deg,rgba(8,15,29,.94),rgba(22,34,57,.89)),url('/assets/reference/section-work.webp') center/cover}
.auth-branding:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 15% 75%,rgba(227,27,45,.34),transparent 32%)}
.auth-branding:after{content:"";position:absolute;width:480px;height:480px;right:-250px;top:8%;border:1px solid rgba(255,255,255,.12);border-radius:50%;box-shadow:0 0 0 60px rgba(255,255,255,.025),0 0 0 120px rgba(255,255,255,.018)}
.auth-brand,.auth-visual-copy,.auth-architecture{position:relative;z-index:1}.auth-brand{display:flex;align-items:center;gap:.75rem;width:fit-content;color:#fff;text-decoration:none}.auth-brand img{width:46px;height:46px;object-fit:contain}.auth-brand span{display:grid;gap:2px}.auth-brand strong{font-size:.82rem;letter-spacing:.04em}.auth-brand small{color:rgba(255,255,255,.58);font-size:.56rem;letter-spacing:.08em}
.auth-visual-copy{max-width:630px;margin:auto 0 48px}.auth-visual-copy .eyebrow,.section-kicker{display:inline-flex;align-items:center;gap:.5rem;color:#ff8590;font-family:"Plus Jakarta Sans",Inter,system-ui,sans-serif;font-size:.68rem;font-weight:800;letter-spacing:.13em}.status-dot{width:7px;height:7px;border-radius:50%;background:#ff5868;box-shadow:0 0 0 5px rgba(255,88,104,.13)}
.auth-visual-copy h1{margin:22px 0 18px;font-size:clamp(2.6rem,4.2vw,4.6rem);line-height:1.02;letter-spacing:-.058em}.auth-visual-copy p{max-width:590px;margin:0;color:rgba(255,255,255,.72);font-size:.94rem;line-height:1.75}
.auth-architecture{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}.auth-architecture>div{min-width:0;padding:1rem;border:1px solid rgba(255,255,255,.14);border-radius:18px;background:rgba(255,255,255,.07);backdrop-filter:blur(10px);display:flex;gap:.65rem}.auth-architecture>div>span{color:#ff7280;font-size:.65rem;font-weight:800}.auth-architecture p{display:grid;gap:.3rem;margin:0}.auth-architecture strong{font-size:.72rem}.auth-architecture small{color:rgba(255,255,255,.58);font-size:.58rem;line-height:1.45}
.auth-main{min-width:0;display:grid;place-items:center;padding:50px clamp(24px,6vw,90px);background:linear-gradient(135deg,#fff,#fbfcfe)}.auth-box{width:min(100%,520px)}.auth-box-head{margin-bottom:26px}.auth-box-head h2{margin:11px 0 9px;color:var(--auth-dark);font-size:clamp(2rem,4vw,2.8rem);letter-spacing:-.05em}.auth-box-head p{margin:0;color:var(--auth-muted);font-size:.87rem;line-height:1.65}.mobile-auth-brand{display:none}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:1px solid var(--auth-line);border-radius:14px;background:#f6f8fb;margin-bottom:20px}.auth-tab{border:0;border-radius:10px;padding:12px;background:transparent;color:var(--auth-muted);font-size:.72rem;font-weight:800;cursor:pointer}.auth-tab.active{background:#fff;color:var(--auth-primary);box-shadow:0 5px 18px rgba(15,23,42,.08)}
.auth-form{display:grid;gap:15px}.auth-form label{display:grid;gap:.4rem;color:var(--auth-dark);font-size:.72rem;font-weight:700}.auth-form input{width:100%;min-height:50px;padding:.75rem .85rem;border:1px solid var(--auth-line);border-radius:13px;background:#fff;color:var(--auth-dark);outline:none}.auth-form input:focus{border-color:var(--auth-primary);box-shadow:0 0 0 4px rgba(227,27,45,.08)}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.button{min-height:50px;border:0;border-radius:999px;padding:.75rem 1rem;font-weight:800;cursor:pointer}.button-dark{color:#fff;background:var(--auth-dark)}.button-dark:hover{background:#1d2b43}.auth-form .button{width:100%;margin-top:3px}.hidden{display:none!important}.form-status{min-height:18px;margin:0;color:var(--auth-muted);font-size:.7rem}
.auth-footer{display:flex;justify-content:space-between;gap:20px;margin-top:28px;padding-top:19px;border-top:1px solid var(--auth-line);color:var(--auth-muted);font-size:.65rem}.auth-footer a,.auth-inline-link{color:var(--auth-primary);font-weight:800}.auth-inline-link{border:0;background:transparent;padding:0;justify-self:start;font-size:.7rem;cursor:pointer}
.setup-page{min-height:100vh;background:#f6f8fb;display:grid;place-items:center;padding:38px 18px}.setup-wrap{width:min(100%,650px)}.setup-header{display:flex;justify-content:center;align-items:center;gap:11px;margin-bottom:22px}.setup-header img{width:42px;height:42px;object-fit:contain}.setup-header>div{display:grid;gap:3px}.setup-header strong{font-size:.76rem;letter-spacing:.08em}.setup-header small{color:var(--auth-muted);font-size:.55rem;letter-spacing:.08em}.setup-card{border:1px solid var(--auth-line);border-radius:24px;background:#fff;padding:40px;box-shadow:0 20px 50px rgba(15,23,42,.08)}.setup-progress{display:flex;align-items:center;margin-bottom:30px}.setup-progress span{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:var(--auth-soft);color:var(--auth-muted);font-size:.62rem;font-weight:800}.setup-progress span.active{background:var(--auth-primary);color:#fff}.setup-progress i{height:1px;flex:1;background:var(--auth-line)}.setup-card h1{margin:10px 0;color:var(--auth-dark);font-size:2.4rem;letter-spacing:-.045em}.setup-card>p{margin:0 0 25px;color:var(--auth-muted);line-height:1.7}.setup-note{margin:18px auto 0;max-width:540px;color:var(--auth-muted);font-size:.68rem;text-align:center;line-height:1.6}
@media(max-width:980px){.auth-page{grid-template-columns:1fr}.auth-branding{display:none}.auth-main{min-height:100vh;padding-top:34px}.mobile-auth-brand{display:flex;align-items:center;gap:10px;margin-bottom:32px;color:var(--auth-dark);text-decoration:none}.mobile-auth-brand img{width:42px;height:42px;object-fit:contain}.mobile-auth-brand span{display:grid}.mobile-auth-brand strong{font-size:.76rem}.mobile-auth-brand small{font-size:.53rem;color:var(--auth-muted)}}
@media(max-width:600px){.auth-main{padding:26px 18px}.auth-box-head h2{font-size:2rem}.auth-tabs{grid-template-columns:1fr}.field-row{grid-template-columns:1fr}.setup-card{padding:28px 20px}.setup-card h1{font-size:2rem}.auth-footer{flex-direction:column}.auth-box{width:100%}}

/* v2.0.0 — unified MAIRA authentication design */
.auth-page,.auth-page button,.auth-page input,.auth-page select,.auth-page textarea,.setup-page,.setup-page button,.setup-page input,.setup-page select,.setup-page textarea{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.auth-page h1,.auth-page h2,.auth-page h3,.auth-brand strong,.setup-page h1,.setup-page h2,.setup-page h3{font-family:"Plus Jakarta Sans",Inter,system-ui,sans-serif}
.auth-page{background:#f6f7f9;color:#17202a}
.auth-branding{background:linear-gradient(145deg,#111827 0%,#1d2939 56%,#5a1020 100%)}
.auth-panel{background:#fff}
.auth-card{border:1px solid #e4e7ec;border-radius:24px;box-shadow:0 22px 60px rgba(16,24,40,.1)}
.auth-card h2{font-weight:800;letter-spacing:-.035em}
.auth-card input,.auth-card select,.auth-card textarea{border-radius:13px;border-color:#dfe3e8}
.auth-card input:focus,.auth-card select:focus,.auth-card textarea:focus{border-color:#d71937;box-shadow:0 0 0 4px rgba(215,25,55,.1)}
.auth-card .button-primary,.auth-card .button-dark{border-radius:999px;background:#d71937;border-color:#d71937}
.auth-card .button-primary:hover,.auth-card .button-dark:hover{background:#b7112c;border-color:#b7112c}

/* v2.0.0 — portal login aligned with the public website */
.auth-page,.auth-page button,.auth-page input,.auth-page select,.auth-page textarea,.setup-page,.setup-page button,.setup-page input,.setup-page select,.setup-page textarea{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.auth-page h1,.auth-page h2,.auth-page h3,.auth-page strong,.auth-page button,.setup-page h1,.setup-page h2,.setup-page h3,.setup-page strong,.setup-page button{font-family:"Plus Jakarta Sans",Inter,system-ui,sans-serif}
.auth-page{grid-template-columns:minmax(430px,.98fr) minmax(0,1.02fr);background:#f4f6f8;color:#101828}
.auth-branding{padding:40px clamp(32px,5vw,76px);background:linear-gradient(145deg,rgba(9,16,30,.96),rgba(16,24,40,.91)),url('/assets/reference/section-work.webp') center/cover}
.auth-branding:before{background:radial-gradient(circle at 16% 78%,rgba(215,25,55,.38),transparent 34%)}
.auth-branding:after{border-color:rgba(255,255,255,.1)}
.auth-brand strong{font-size:13px;letter-spacing:-.02em}.auth-brand small{font-size:9px;letter-spacing:.08em}
.auth-visual-copy{max-width:680px}.auth-visual-copy .eyebrow,.section-kicker{color:#ff7187;font-size:11px;letter-spacing:.13em}.auth-visual-copy h1{font-size:clamp(42px,4.4vw,70px);line-height:1.02;letter-spacing:-.055em}.auth-visual-copy p{font-size:15px;line-height:1.8}
.auth-architecture{gap:12px}.auth-architecture>div{padding:17px;border-radius:18px}.auth-architecture>div>span{font-size:11px}.auth-architecture strong{font-size:12px}.auth-architecture small{font-size:10px}
.auth-main{padding:50px clamp(28px,6vw,92px);background:linear-gradient(135deg,#fff,#f8fafc)}.auth-box{width:min(100%,540px)}.auth-box-head{margin-bottom:28px}.auth-box-head h2{font-size:clamp(32px,4vw,46px);line-height:1.1}.auth-box-head p{font-size:14px;line-height:1.7}
.auth-tabs{padding:5px;border-color:#e4e7ec;border-radius:15px;background:#f2f4f7}.auth-tab{min-height:44px;border-radius:11px;font-size:12px}.auth-tab.active{color:#b7112c}
.auth-form{gap:17px}.auth-form label{font-size:13px}.auth-form input{min-height:52px;border-color:#d0d5dd;border-radius:13px;font-size:14px}.auth-form input:focus{border-color:#d71937;box-shadow:0 0 0 4px rgba(215,25,55,.1)}.auth-inline-link{color:#b7112c;font-size:12px}.button{min-height:52px;border-radius:13px;font-size:13px}.button-dark{background:#d71937}.button-dark:hover{background:#b7112c}.form-status{font-size:12px}.auth-footer{font-size:11px}.auth-footer a{color:#b7112c}
.mobile-auth-brand strong{font-size:12px}.mobile-auth-brand small{font-size:9px}
.setup-page{background:#f4f6f8}.setup-card{border-color:#e4e7ec;border-radius:26px;box-shadow:0 24px 70px rgba(16,24,40,.1)}.setup-card h1{font-size:38px}.setup-card>p{font-size:14px}.setup-note{font-size:11px}
@media(max-width:980px){.auth-main{padding:34px 22px}.mobile-auth-brand{display:flex}.auth-box{max-width:560px}}
@media(max-width:600px){.auth-main{padding:22px 16px}.auth-box-head h2{font-size:31px}.auth-tabs{grid-template-columns:1fr 1fr}.auth-tab{padding-inline:8px}.auth-footer{font-size:10px}.mobile-auth-brand{margin-bottom:28px}}
