.auth{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1.12fr) minmax(400px,1fr);gap:0;padding:0;background:#f5f7f2}
.auth-story{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:46px clamp(36px,5vw,88px);border-radius:0;background:radial-gradient(ellipse at 20% 85%,#25685480,transparent 55%),linear-gradient(135deg,#092f29,#164b3e);color:#f0f6ed;min-height:100dvh}
.auth-story::before{content:"";position:absolute;inset:0;background-image:linear-gradient(#ffffff04 1px,transparent 1px),linear-gradient(90deg,#ffffff04 1px,transparent 1px);background-size:42px 42px;pointer-events:none}
.auth-story>*{position:relative;z-index:1}.auth-story .brand{display:flex;align-items:center;gap:12px;width:auto;height:auto;margin:0 0 36px;padding:0;align-self:flex-start;border-radius:0;background:none;box-shadow:none;color:white;font-size:25px;text-decoration:none;letter-spacing:-1px}
.auth-story .brand::before,.auth-story .brand::after{display:none}.auth-logo{display:grid;place-items:center;width:40px;height:40px;border:1px solid #bbdfb66b;border-radius:13px;color:#ceefa9;font-size:25px;font-weight:800;background:#ffffff0a}
.auth-message{width:100%;max-width:620px}.auth-story .eyebrow{color:#b8dcbd;font-size:10px;letter-spacing:2.6px}.auth-story h1{font-size:clamp(38px,4.2vw,68px);line-height:1.1;letter-spacing:-2.5px;margin:20px 0 23px;font-weight:600}.auth-story h1 em{color:#cfeba9;font-style:normal}.auth-story p{display:block;color:#bcd3c8;font-size:15px;line-height:1.9;max-width:490px}
.auth-network{margin:20px 0 22px;padding:0;position:relative;border-bottom:1px solid #ffffff14}.auth-network svg{display:block;width:100%;max-height:220px}.auth-network>span{display:block;text-align:center;font-size:9px;letter-spacing:3px;color:#a5c6b5;margin:0 0 22px}
.auth-capabilities{display:flex;flex-wrap:wrap;gap:8px}.auth-capabilities span{font-size:10px;color:#d3e1d6;border:1px solid #ffffff24;background:#ffffff06;border-radius:30px;padding:9px 12px}.auth-story>small{display:block;font-size:11px;color:#a5bfb0;margin-top:30px}
.auth-form{display:flex;align-items:center;justify-content:center;padding:40px clamp(24px,4vw,68px);background:radial-gradient(circle at 90% 5%,#e5efda,transparent 45%),#f5f7f2;min-height:100dvh}.auth-form>div{width:100%;max-width:440px;background:white;border:1px solid #e1e8df;border-radius:25px;padding:38px;box-shadow:0 22px 65px #183b2a0d}.auth-form .eyebrow{font-size:9px;letter-spacing:2px;color:#6b806d}.auth-form h2{font-size:clamp(27px,2.6vw,38px);line-height:1.13;letter-spacing:-1.4px;margin:14px 0;color:#173b30}.auth-form .muted{font-size:13px;line-height:1.75;color:#718077}
.login-portals{display:grid;grid-template-columns:1fr 1fr;background:#f1f5ee;border:1px solid #e3e9e0;padding:4px;border-radius:12px;gap:4px;margin:25px 0 22px}.login-portals button{border:0;border-radius:8px;padding:11px 8px;font-size:12px;color:#667767;background:transparent}.login-portals button[aria-pressed=true]{background:white;box-shadow:0 2px 7px #203c2410;color:#174d3b;font-weight:700}
#auth-form{margin-top:20px;display:flex;flex-direction:column;gap:12px}#auth-form input:not([type=hidden]){height:50px;background:#fafbf8;border:1px solid #dfe5dc;border-radius:10px;box-shadow:none;padding:12px;font-size:14px;color:#243a30;width:100%}#auth-form input:focus{outline:3px solid #a9d9bb55;border-color:#659b7d}#auth-form label{font-size:12px;color:#3c5345;margin:0}#auth-form .primary{border-radius:11px;background:#164b3b;min-height:50px;font-size:13px;font-weight:700;box-shadow:0 6px 15px #1b533223;margin-top:3px}#auth-form .primary:hover{background:#236044}.auth-form .password-toggle{color:#3c715a;font-size:11px;padding:2px;text-align:right;align-self:flex-end}.auth-form .hint{font-size:10px;line-height:1.7;color:#829084;padding:0;border:0;background:none}.auth-form .text-button{font-size:12px;color:#486f57;width:100%;margin:14px 0}
.traffic-canvas{height:auto!important;aspect-ratio:700/260;min-height:180px}.resource-chart{border:1px solid #e1e9e2;border-radius:14px;padding:16px;margin:15px 0;background:#fff}.resource-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.resource-heading h3{margin:0;font-size:15px}.resource-heading strong{font-size:18px;color:#23644e}
@media(max-width:980px){.auth{grid-template-columns:minmax(0,1fr) minmax(360px,1fr)}.auth-story{padding:36px 28px}.auth-story h1{font-size:40px}.auth-form{padding:28px 20px}.auth-form>div{padding:28px}.auth-network{margin-top:30px}}
@media(max-width:720px){.auth{display:block}.auth-story{min-height:0;padding:26px 26px 30px}.auth-story .brand{margin-bottom:24px}.auth-story h1{font-size:36px;letter-spacing:-1.7px;margin:12px 0}.auth-story p{font-size:12px;margin-bottom:0}.auth-network,.auth-capabilities,.auth-story>small{display:none}.auth-form{min-height:0;padding:22px 18px 36px}.auth-form>div{max-width:480px;padding:28px 24px;border-radius:22px}.auth-form h2{font-size:30px}}
/* SaaS owner pilot: ISP workspaces retain their existing design. */
body:has(.auth-platform){background:radial-gradient(circle at 20% 8%,#059cf1,transparent 48%),linear-gradient(145deg,#0479c8,#003d70);min-height:100dvh}
.auth.auth-platform{width:calc(100% - 48px);max-width:1040px;min-height:600px;margin:clamp(24px,10vh,110px) auto;grid-template-columns:1fr 1.06fr;border-radius:24px;overflow:hidden;box-shadow:0 32px 85px #002f6455;background:white}
.auth-platform .auth-story{min-height:600px;padding:40px;background:linear-gradient(140deg,#087abb,#034876);border-radius:0 48% 48% 0 / 0 52% 52% 0;isolation:isolate}
.auth-platform .auth-story::before{inset:auto auto -95px -65px;width:260px;height:260px;border-radius:50%;background:linear-gradient(130deg,#07a3fa,#004f88);box-shadow:180px -40px 0 -30px #087cbb;z-index:0}
.auth-platform .auth-story::after{content:"";position:absolute;width:160px;height:160px;right:22px;bottom:48px;border-radius:50%;background:radial-gradient(circle at 32% 24%,#0b9ee7,#004b80);box-shadow:0 20px 40px #00345645;z-index:0}
.auth-platform .auth-story h1{font-size:42px;letter-spacing:-1.5px;line-height:1.17}.auth-platform .auth-story h1 em{color:#a9e3ff}.auth-platform .auth-story p{color:#deeffc;font-size:13px;max-width:290px}.auth-platform .auth-network,.auth-platform .auth-capabilities{display:none}.auth-platform .auth-message{margin:auto 0 100px}.auth-platform .auth-story .eyebrow{color:#b7e5ff}.auth-platform .auth-story>small{color:#c3e4fa;font-size:10px}
.auth-platform .auth-form{min-height:600px;background:white;padding:36px}.auth-platform .auth-form>div{border:0;border-radius:0;padding:14px;box-shadow:none}.auth-platform .auth-form h2{color:#12273b;font-size:32px}.auth-platform #auth-form input:not([type=hidden]){background:#f1f5f9;border-color:#e3eaf1;border-radius:9px}.auth-platform #auth-form .primary{background:#075985;box-shadow:0 8px 18px #07598526}.auth-platform .login-portals{background:#edf4fa;border-color:#e3ecf5}.auth-platform .login-portals button[aria-pressed=true]{color:#075985}.auth-platform .password-toggle,.auth-platform .text-button{color:#075985}
.dashboard-theme{background:var(--owner-body,#eef5fb)}.dashboard-theme .main{background:var(--owner-body,#eef5fb);color:var(--owner-body-text,#12202f)}.dashboard-theme .sidebar{background:var(--owner-nav,#075985);color:var(--owner-nav-text,#fff);border:0}.dashboard-theme .sidebar :is(.brand,.nav-item,.nav-label,.workspace strong,.workspace small,.profile strong,.profile small){color:var(--owner-nav-text,#fff)}.dashboard-theme .sidebar .workspace,.dashboard-theme .sidebar .sidebar-bottom{border-color:color-mix(in srgb,var(--owner-nav-text) 20%,transparent)}.dashboard-theme .nav-item{border-radius:10px;padding:12px 14px;margin-bottom:5px}.dashboard-theme .nav-item.selected,.dashboard-theme .nav-item:hover{background:color-mix(in srgb,var(--owner-nav-text) 15%,transparent);color:var(--owner-nav-text);box-shadow:inset 3px 0 var(--owner-nav-text)}.dashboard-theme .topbar{background:#ffffffed;color:#172c40;border-bottom:1px solid #dce6ef;gap:16px;flex-wrap:wrap}.dashboard-theme .panel,.dashboard-theme .stats article{border-color:#dce6ef;border-radius:18px;box-shadow:0 5px 22px #103a6007;color:#172c40;background:white}.dashboard-theme .stats article{border-top:3px solid #1288c5}.dashboard-theme .page-heading h1{color:inherit;letter-spacing:-1px}.dashboard-theme .page-heading p,.dashboard-theme footer{color:inherit;opacity:.8}.dashboard-theme .primary{background:#075985;box-shadow:none}.dashboard-theme .eyebrow{color:inherit}.dashboard-theme .content{padding-top:28px}
.appearance-picker{position:relative;margin-left:auto;font-size:12px}.appearance-picker summary{cursor:pointer;padding:9px 14px;border:1px solid #d6e3ef;border-radius:10px;list-style:none;color:#075985;font-weight:650;background:#f5f9fd}.appearance-controls{position:absolute;right:0;top:45px;z-index:40;width:248px;padding:18px;border:1px solid #d6e3ef;border-radius:15px;background:white;box-shadow:0 14px 45px #143b6424;color:#172c40;display:grid;gap:14px}.appearance-controls label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}.appearance-controls input[type=color]{width:42px;height:32px;padding:2px;border-radius:7px;border:1px solid #dce6ef;cursor:pointer}.appearance-controls small{font-size:10px;color:#62788b;line-height:1.5}
@media(max-width:720px){.auth.auth-platform{width:calc(100% - 28px);margin:22px auto;display:block;min-height:0;border-radius:18px}.auth-platform .auth-story{min-height:0;padding:22px;border-radius:0 0 38% 0}.auth-platform .auth-story h1{font-size:27px}.auth-platform .auth-story .brand{margin-bottom:20px}.auth-platform .auth-message{margin:0}.auth-platform .auth-story p{display:none}.auth-platform .auth-story::after{width:75px;height:75px;right:18px;bottom:12px}.auth-platform .auth-form{min-height:0;padding:22px 18px}.auth-platform .auth-form>div{padding:4px}.auth-platform .auth-form h2{font-size:27px}.dashboard-theme .topbar{gap:8px}.appearance-controls{width:225px}.dashboard-theme .content{padding:18px 12px}}
body:has(.auth-platform) #app{min-height:100dvh;display:grid;place-items:center;padding:40px 24px}.auth.auth-platform{margin:0;width:100%}.auth-platform .auth-story h1{color:#fff}.dashboard-theme .sidebar .workspace,.dashboard-theme .sidebar .sidebar-bottom,.dashboard-theme .sidebar .profile{background:transparent}.dashboard-theme .sidebar .workspace{background:color-mix(in srgb,var(--owner-nav-text) 10%,transparent)}.dashboard-theme .sidebar .profile button{color:var(--owner-nav-text);background:transparent}.dashboard-theme .workspace-icon{color:var(--owner-nav);background:var(--owner-nav-text)}
@media(max-width:720px){body:has(.auth-platform) #app{padding:20px 14px}.auth.auth-platform{width:100%;margin:0}}
.auth-platform .auth-story{align-items:flex-start}.auth-platform .auth-story>.auth-message{display:block;text-align:left}.auth-platform .auth-story .brand{width:auto;height:auto;transform:none;min-height:40px}.auth-platform .auth-story .brand>span{display:block;color:white;letter-spacing:-.8px;font-size:25px}.auth-platform .auth-story .brand>.auth-logo{display:grid;place-items:center;width:40px;height:40px;background:#ffffff12;color:white}.auth-platform .auth-message{max-width:340px}.auth-platform .auth-message h1{max-width:330px}
.auth-platform .auth-story .brand{flex-direction:row;gap:10px;border:0;border-radius:0;padding:0;box-shadow:none;justify-content:flex-start}.auth-platform .auth-story .brand:hover{transform:none;box-shadow:none}
/* Shared TZhubs identity across public sign-in and every workspace. */
.auth-platform .auth-story{justify-content:center;gap:32px;padding:38px 40px}.auth-platform .auth-story .login-brand{width:210px;height:190px;overflow:hidden;flex-shrink:0;background:white;border-radius:24px;box-shadow:0 14px 34px #003c6c35;display:grid;place-items:center}.auth-platform .login-brand img{display:block;width:235px;height:235px;max-width:none;object-fit:contain}.auth-platform .auth-message{margin:0 0 52px;max-width:350px}.auth-platform .auth-message .eyebrow{font-size:10px;margin:0;letter-spacing:2px}.auth-platform .auth-message h1{font-size:38px;line-height:1.2;max-width:360px;margin:20px 0}.auth-platform .auth-message p{margin:0;font-size:14px;line-height:1.8}.dashboard-theme .sidebar .dashboard-brand{display:flex!important;justify-content:center;width:132px;height:88px;padding:0;margin:0 auto;overflow:hidden;border-radius:15px;background:white;box-shadow:0 6px 22px #002c4c20}.dashboard-theme .dashboard-brand::before,.dashboard-theme .dashboard-brand::after{display:none}.dashboard-theme .dashboard-brand img{width:135px;height:135px;max-width:none;object-fit:contain}.dashboard-theme .sidebar .engine{color:var(--owner-nav-text);background:transparent}.dashboard-theme .sidebar .engine strong,.dashboard-theme .sidebar .engine small{color:inherit}.dashboard-theme .sidebar .profile .avatar{color:var(--owner-nav);background:var(--owner-nav-text)}
@media(max-width:900px){.dashboard-theme .sidebar .dashboard-brand{width:50px;height:45px;border-radius:9px}.dashboard-theme .dashboard-brand img{width:67px;height:67px}.dashboard-theme .appearance-picker{margin-left:0}}
@media(max-width:720px){.auth-platform .auth-story{padding:24px;gap:20px}.auth-platform .auth-story .login-brand{width:130px;height:105px;border-radius:17px}.auth-platform .login-brand img{width:148px;height:148px}.auth-platform .auth-message{margin:0 0 10px}.auth-platform .auth-message h1{font-size:28px;margin:12px 0}.auth-platform .auth-message p{display:block;font-size:12px}.auth-platform .auth-story::before{opacity:.4}.auth-platform .auth-story::after{opacity:.45}.dashboard-theme .topbar{height:auto;min-height:64px;padding-top:10px;padding-bottom:10px}}
.auth-platform .login-brand img{width:210px;height:210px;transform:translateY(-10px)}.dashboard-theme{--ui-accent:#075985;--ui-accent-soft:#e2f1fb;--ui-border:#dce6ef;--ui-shadow:0 12px 32px #12385810}.dashboard-theme .dashboard-brand img{width:115px;height:115px;transform:translateY(-13px)}
@media(max-width:900px){.dashboard-theme .dashboard-brand img{width:67px;height:67px;transform:translateY(-9px)}}
@media(max-width:720px){.auth-platform .login-brand img{width:130px;height:130px;transform:translateY(-14px)}}

/* Keep account controls readable with every navigation colour. */
.dashboard-theme .sidebar .profile{background:transparent!important;flex-wrap:wrap;gap:8px}.dashboard-theme .sidebar .profile button{background:var(--owner-nav-text,#fff);color:var(--owner-nav,#075985);border:1px solid currentColor;min-height:40px;padding:8px 12px;border-radius:9px;white-space:nowrap}.dashboard-theme .sidebar nav{min-height:0;overflow-y:auto;flex:1 1 auto}.dashboard-theme .sidebar-bottom{padding-top:8px}.dashboard-theme .sidebar .profile{margin-top:8px;padding-bottom:8px}#owner-smtp-form .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}#owner-smtp-form label{min-width:0}#owner-smtp-form :is(input,select){width:100%;min-width:0;max-width:100%;box-sizing:border-box}#owner-smtp-form .action-buttons{display:flex;flex-wrap:wrap;gap:10px}@media(max-width:600px){#owner-smtp-form .form-grid{grid-template-columns:minmax(0,1fr)}#owner-smtp-form .action-buttons button{width:100%}}

#owner-smtp-form{padding:20px!important}#owner-smtp-form .form-grid{gap:12px 16px}#owner-smtp-form label{margin:0;display:flex;flex-direction:column;gap:6px}#owner-smtp-form label input,#owner-smtp-form label select{margin:0} .dashboard-theme .sidebar .profile .logout-button{height:auto;min-width:80px}

/* Settings use the same cards and spacing as other dashboard pages. */
.settings-pages{min-width:0}.settings-tabs{display:flex;gap:8px;overflow-x:auto;margin:0 0 20px;padding:5px;border:1px solid #dce6ef;border-radius:12px;background:#fff}.settings-tabs button{white-space:nowrap;padding:11px 16px;border-radius:8px;background:transparent;color:#527086}.settings-tabs button.selected{color:white;background:#075985}.settings-pages>.panel{margin-bottom:20px}.settings-pages .email-settings-panel{max-width:900px}.settings-pages .email-readiness>div:not(.panel-heading){padding:24px!important}.settings-pages .email-readiness .check-label{display:flex;align-items:center;gap:10px}.settings-pages .email-readiness input[type=checkbox]{width:18px;height:18px;margin:0}.settings-pages .table-wrap{max-width:100%;overflow-x:auto}.auth-platform .auth-story .login-brand{margin-bottom:0}.auth-platform .auth-story{gap:16px;overflow:visible}.auth-platform .auth-story>.auth-message{margin:0!important}.auth-platform .auth-message p{margin-top:10px}.auth-platform .auth-story::after{right:-48px;bottom:36px;z-index:2;pointer-events:none}.auth-platform .auth-form{position:relative}.auth.auth-platform{overflow:hidden}@media(max-width:720px){.auth-platform .auth-story{gap:12px}.auth-platform .auth-story::after{right:20px;bottom:-24px;width:75px;height:75px;opacity:1}.settings-tabs button{padding:10px 12px}.settings-pages .panel-heading{padding:18px}.settings-pages #owner-smtp-form{padding:18px!important}}

.auth-platform .auth-story{z-index:1}.auth-platform .auth-form{z-index:0}
