:root{--navy:#071724;--navy2:#0a1b2b;--white:#f7f8fa;--muted:#b5c0ca;--gold:#d7ad58;--red:#ee1118}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden}
body{font-family:Inter,"Segoe UI",Arial,sans-serif;background:var(--navy);color:var(--white);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}button,input{font:inherit}
.portal-shell{width:100%;height:100vh;display:grid;grid-template-rows:74px minmax(0,1fr) 56px;background:var(--navy)}
.portal-header{display:flex;align-items:center;justify-content:space-between;padding:0 5.8%;background:rgba(5,19,31,.98);border-bottom:1px solid rgba(215,173,88,.72);position:relative;z-index:20}
.brand-lockup{display:flex;align-items:center;height:100%;gap:22px;min-width:0}.brand-lockup img{display:block;width:216px;height:auto}.brand-divider{height:27px;width:1px;background:rgba(255,255,255,.23)}.portal-label{font-size:12px;letter-spacing:4px;color:#c7d0d7;white-space:nowrap}
.header-actions{display:flex;align-items:center;gap:20px;font-size:13px;color:#e7edf1;white-space:nowrap}.header-actions a:hover{color:#fff}.header-divider{width:1px;height:22px;background:rgba(255,255,255,.18)}.header-actions button{padding:0;border:0;background:none;color:#e7edf1;cursor:pointer}.header-actions button span{margin-left:5px;color:#d7ad58}
.portal-main{position:relative;min-height:0;overflow:hidden}.portal-background{position:absolute;inset:0;background-image:url('./codevione-enterprise-bg.png');background-size:cover;background-position:center center;background-repeat:no-repeat;transform:scale(1.012)}
.background-vignette{position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,16,27,.94) 0%,rgba(4,16,27,.82) 29%,rgba(4,16,27,.38) 58%,rgba(4,16,27,.12) 100%),linear-gradient(0deg,rgba(2,10,18,.55) 0%,transparent 38%,rgba(2,10,18,.18) 100%)}
.portal-grid{position:relative;z-index:3;width:100%;height:100%;display:grid;grid-template-columns:minmax(0,1fr) 440px;gap:7%;align-items:center;padding:42px 6%}
.welcome-panel{max-width:610px}.gold-line{width:80px;height:3px;background:var(--gold);margin-bottom:24px}.eyebrow{font-size:12px;letter-spacing:4px;color:#c9d1d7;margin-bottom:13px}.welcome-panel h1{font-size:clamp(48px,4.5vw,68px);line-height:.99;font-weight:300;letter-spacing:-2.5px;margin:0 0 20px}.welcome-panel h1 strong{font-weight:700}.welcome-copy{font-size:16px;line-height:1.55;color:#c2cbd2;max-width:470px;margin:0 0 27px}
.capability-list{display:grid;gap:9px}.capability{display:flex;align-items:center;gap:13px}.capability-icon{width:41px;height:41px;flex:0 0 41px;border:1px solid rgba(215,173,88,.36);border-radius:9px;background:rgba(5,18,29,.64);display:grid;place-items:center;color:#e2b85f;font-size:20px;box-shadow:inset 0 1px rgba(255,255,255,.05)}.capability strong{display:block;font-size:14px;line-height:1.15;font-weight:600}.capability small{display:block;color:#aeb9c2;font-size:10.5px;line-height:1.35;margin-top:3px}
.login-card{width:440px;max-width:100%;border:1px solid rgba(255,255,255,.53);border-radius:22px;background:linear-gradient(145deg,rgba(255,255,255,.17),rgba(11,28,43,.38) 48%,rgba(255,255,255,.09));box-shadow:0 28px 70px rgba(0,0,0,.43),0 0 34px rgba(215,173,88,.13),inset 0 1px rgba(255,255,255,.16);backdrop-filter:blur(25px) saturate(150%);-webkit-backdrop-filter:blur(25px) saturate(150%);position:relative;overflow:hidden}.login-card:after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 90% 10%,rgba(255,215,128,.16),transparent 27%),linear-gradient(120deg,rgba(255,255,255,.09),transparent 38%)}.login-card-inner{position:relative;z-index:2;padding:30px 38px 31px}
.portal-mark{display:block;width:57px;height:57px;object-fit:contain;margin:0 auto 8px}.login-brand-label{text-align:center;color:#d1d8dd;font-size:10px;letter-spacing:4px}.login-accent{width:48px;height:3px;background:var(--gold);margin:14px auto 18px}.login-card h2{font-size:21px;line-height:1.2;margin:0 0 6px;font-weight:650}.login-subtitle{font-size:12px;color:#c0cad2;margin:0 0 18px;line-height:1.4}
.input-shell{height:52px;border:1px solid rgba(255,255,255,.38);border-radius:10px;background:rgba(255,255,255,.075);display:flex;align-items:center;padding:0 13px;margin-bottom:10px;transition:.18s ease}.input-shell:focus-within{border-color:rgba(255,255,255,.75);background:rgba(255,255,255,.10);box-shadow:0 0 0 3px rgba(215,173,88,.09)}.input-shell svg{width:18px;height:18px;fill:none;stroke:#e9eef1;stroke-width:1.7;flex:0 0 auto;margin-right:10px}.input-shell input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#fff;font-size:13px}.input-shell input::placeholder{color:#c1cbd3}.input-shell .eye{margin:0 0 0 9px;width:17px}
.form-options{display:flex;justify-content:space-between;align-items:center;margin:4px 0 16px;font-size:11px}.form-options label{display:flex;align-items:center;gap:7px;color:#d9e0e4}.form-options input{width:16px;height:16px;margin:0;accent-color:var(--gold)}.form-options a{color:#f0c45c;text-decoration:underline;text-underline-offset:2px}.sign-in{width:100%;height:52px;border:0;border-radius:10px;background:linear-gradient(90deg,#df0d14,#fb252b);color:#fff;font-size:14px;font-weight:650;cursor:pointer;box-shadow:0 12px 28px rgba(238,17,24,.27);transition:transform .15s ease,filter .15s ease}.sign-in:hover{filter:brightness(1.06);transform:translateY(-1px)}.sign-in span{font-size:18px;margin-left:8px}.or-divider{display:flex;align-items:center;gap:12px;margin:17px 0 12px;color:#b9c3ca;font-size:10px}.or-divider span{height:1px;background:rgba(255,255,255,.26);flex:1}.or-divider em{font-style:normal}
.access-box{display:flex;align-items:center;gap:12px;border:1px solid rgba(255,255,255,.22);border-radius:10px;background:rgba(255,255,255,.055);padding:12px 12px;color:#fff}.access-icon{flex:0 0 auto}.access-icon svg{width:27px;height:27px;fill:none;stroke:var(--gold);stroke-width:1.45}.access-copy{min-width:0}.access-copy strong{display:block;font-size:12px;font-weight:650}.access-copy small{display:block;color:#b6c0c8;font-size:10px;line-height:1.4;margin-top:3px}.access-arrow{margin-left:auto;color:#e4e9ec;font-size:18px}
.portal-footer{display:flex;align-items:center;justify-content:space-between;padding:0 6%;background:#061521;border-top:1px solid rgba(215,173,88,.7);color:#aeb9c2;font-size:10.5px;position:relative;z-index:10;min-width:0;min-height:52px}.footer-copyright{justify-self:auto;white-space:nowrap;position:relative;z-index:2}.footer-products{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex!important;align-items:center;justify-content:center;gap:26px;min-width:0;height:34px;z-index:3;visibility:visible!important;opacity:1!important;white-space:nowrap}.footer-products .product-logo{display:block!important;width:auto!important;max-width:150px;height:27px;object-fit:contain;object-position:center;opacity:.92;visibility:visible!important;flex:0 0 auto}.footer-products .product-vionesphere{height:50px;max-width:154px}.footer-products .product-xvione{height:27px;max-width:118px}.footer-products .product-webvione{height:45px;max-width:126px}.footer-products .product-shopvione{height:55px;max-width:126px}.footer-products .product-logo:hover{opacity:1;transform:translateY(-1px)}.footer-links{margin-left:auto;display:flex;align-items:center;white-space:nowrap;position:relative;z-index:2}.footer-links a:hover{color:#fff}.footer-links i{height:13px;width:1px;background:rgba(255,255,255,.25);margin:0 10px} 
@media(max-width:1050px){.portal-grid{grid-template-columns:minmax(0,1fr) 400px;gap:4%;padding-left:4%;padding-right:4%}.brand-lockup img{width:190px}.portal-label{letter-spacing:3px}}
@media(max-width:850px){html,body{overflow:auto}.portal-shell{height:auto;min-height:100vh;display:block}.portal-header{height:68px;padding:0 22px}.brand-lockup img{width:175px}.brand-divider,.portal-label,.header-actions .header-divider,.header-actions a:first-child{display:none}.portal-main{min-height:auto}.portal-grid{height:auto;grid-template-columns:1fr;padding:48px 22px 54px;gap:38px}.welcome-panel{max-width:620px}.login-card{width:min(440px,100%);justify-self:center}.portal-footer{min-height:88px;height:auto;padding:13px 22px;display:grid;grid-template-columns:1fr;justify-items:center;row-gap:9px}.footer-copyright,.footer-products,.footer-links{justify-self:center;width:100%;justify-content:center}.footer-copyright{order:1;white-space:normal;text-align:center}.footer-products{order:2;position:static;transform:none;height:auto;gap:20px;min-width:0;width:100%;}.footer-links{order:3;margin-left:0}}
@media(max-width:520px){.portal-header{height:62px}.brand-lockup img{width:155px}.header-actions{font-size:11px}.portal-grid{padding:34px 16px 42px}.welcome-panel h1{font-size:42px;letter-spacing:-1.5px}.welcome-copy{font-size:14px}.capability-list{gap:10px}.login-card-inner{padding:27px 19px 25px}.login-card{border-radius:18px}.portal-footer{font-size:9px}.footer-products{gap:10px}.footer-products .product-logo{max-width:82px;height:20px}.footer-products .product-vionesphere{height:21px;max-width:90px}.footer-products .product-xvione{height:20px;max-width:72px}.footer-products .product-webvione{height:20px;max-width:76px}.footer-products .product-shopvione{height:20px;max-width:76px}.footer-links i{margin:0 6px}}

/* Responsive refinement - preserves the approved premium enterprise composition */
@media (max-height: 760px) and (min-width: 851px){
  .portal-shell{grid-template-rows:70px minmax(0,1fr) 52px}
  .portal-header{padding-left:5.9%;padding-right:5.9%}
  .portal-grid{padding-top:24px;padding-bottom:24px;grid-template-columns:minmax(0,1fr) 410px;gap:5%}
  .welcome-panel{max-width:570px}
  .gold-line{margin-bottom:16px}
  .welcome-panel h1{font-size:clamp(42px,4.2vw,58px);margin-bottom:13px}
  .welcome-copy{font-size:14px;margin-bottom:17px}
  .capability-list{gap:6px}
  .capability-icon{width:36px;height:36px;flex-basis:36px;font-size:17px}
  .capability strong{font-size:12px}
  .capability small{font-size:9px}
  .login-card{width:410px}
  .login-card-inner{padding:22px 32px 23px}
  .portal-mark{width:49px;height:49px;margin-bottom:5px}
  .login-accent{margin:10px auto 13px}
  .login-card h2{font-size:19px}
  .login-subtitle{font-size:11px;margin-bottom:13px}
  .input-shell{height:46px;margin-bottom:8px}
  .form-options{margin-bottom:12px}
  .sign-in{height:48px}
  .or-divider{margin:12px 0 9px}
  .access-box{padding:9px 10px}
}

@media (min-width:851px) and (max-width:1200px){
  .portal-grid{grid-template-columns:minmax(0,1fr) 390px;gap:4%;padding-left:4%;padding-right:4%}
  .welcome-panel h1{font-size:clamp(43px,5vw,58px)}
  .login-card{width:390px}
}

@media (max-width:850px){
  html,body{overflow-x:hidden;overflow-y:auto;height:auto}
  .portal-shell{height:auto;min-height:100vh;display:flex;flex-direction:column}
  .portal-header{height:68px;min-height:68px;flex:0 0 68px;padding:0 22px}
  .brand-lockup img{width:175px}
  .brand-divider,.portal-label{display:none}
  .header-actions{gap:14px;font-size:11px}
  .header-actions .header-divider{display:none}
  .portal-main{flex:1;overflow:hidden}
  .portal-background{position:absolute;min-height:100%}
  .background-vignette{background:linear-gradient(180deg,rgba(4,16,27,.84),rgba(4,16,27,.72) 48%,rgba(4,16,27,.9))}
  .portal-grid{height:auto;min-height:0;display:flex;flex-direction:column;align-items:stretch;padding:40px 22px 48px;gap:34px}
  .welcome-panel{max-width:680px;width:100%;margin:0 auto}
  .welcome-panel h1{font-size:clamp(43px,8vw,58px)}
  .welcome-copy{max-width:600px}
  .capability-list{max-width:620px}
  .login-card{width:min(440px,100%);margin:0 auto}
  .portal-footer{min-height:88px;height:auto;flex:0 0 auto;padding:13px 22px;display:grid;grid-template-columns:1fr;justify-items:center;row-gap:9px}
  .footer-copyright,.footer-products,.footer-links{justify-self:center;width:100%;justify-content:center}
  .footer-copyright{order:1;white-space:normal;text-align:center}
  .footer-products{order:2;position:static;transform:none;height:auto;gap:20px;min-width:0;width:100%;}
  .footer-links{order:3;margin-left:0}
}

@media (max-width:520px){
  .portal-header{height:62px;min-height:62px;padding:0 16px}
  .brand-lockup img{width:155px}
  .header-actions{font-size:10px;gap:0}
  .header-actions a:first-child,.header-actions .header-divider{display:none}
  .portal-grid{padding:32px 16px 38px;gap:28px}
  .gold-line{width:62px;height:2px;margin-bottom:18px}
  .eyebrow{font-size:10px;letter-spacing:3px}
  .welcome-panel h1{font-size:40px;line-height:1;letter-spacing:-1.6px;margin-bottom:15px}
  .welcome-copy{font-size:13px;line-height:1.5;margin-bottom:21px}
  .capability-list{gap:8px}
  .capability{gap:10px}
  .capability-icon{width:37px;height:37px;flex-basis:37px;font-size:17px;border-radius:8px}
  .capability strong{font-size:12px}
  .capability small{font-size:9px}
  .login-card{border-radius:18px}
  .login-card-inner{padding:25px 18px 23px}
  .portal-mark{width:51px;height:51px}
  .login-brand-label{font-size:9px;letter-spacing:3.5px}
  .login-card h2{font-size:19px}
  .login-subtitle{font-size:11px}
  .input-shell{height:49px}
  .form-options{font-size:10px}
  .sign-in{height:49px}
  .portal-footer{font-size:9px;padding:14px 16px}
  .portal-footer i{margin:0 6px}
}

@media (max-width:360px){
  .brand-lockup img{width:142px}
  .header-actions{font-size:9px}
  .portal-grid{padding-left:13px;padding-right:13px}
  .welcome-panel h1{font-size:35px}
  .login-card-inner{padding-left:15px;padding-right:15px}
  .form-options{gap:7px}
  .form-options a{white-space:nowrap}
}

/* Client application shell and cross-device safeguards */
.portal-form-error{margin:0 0 12px;padding:9px 11px;border:1px solid rgba(255,105,105,.45);border-radius:8px;background:rgba(120,15,20,.28);color:#ffd8d8;font-size:11px;line-height:1.4}
.client-dashboard-shell{min-height:100vh;background:#f3f5f7;color:#172431}
.client-app-header{min-height:72px;padding:0 clamp(16px,4vw,64px);display:flex;align-items:center;gap:clamp(18px,3vw,42px);background:#071724;border-bottom:1px solid rgba(215,173,88,.7);color:#fff;position:sticky;top:0;z-index:20}
.client-app-header .brand-home{flex:0 0 auto}.client-app-header .brand-home img{display:block;width:clamp(145px,13vw,205px);height:auto}
.client-app-nav{display:flex;align-items:center;justify-content:center;gap:clamp(14px,2vw,28px);flex:1;min-width:0;overflow:auto;scrollbar-width:none}.client-app-nav::-webkit-scrollbar{display:none}.client-app-nav a{font-size:13px;color:#b9c5cd;white-space:nowrap;padding:26px 0 23px;border-bottom:2px solid transparent}.client-app-nav a:hover,.client-app-nav a.active{color:#fff;border-bottom-color:#d7ad58}
.client-signout{border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.05);border-radius:8px;padding:9px 13px;color:#e9eef1;font-size:12px;white-space:nowrap;cursor:pointer}.client-signout:hover{border-color:rgba(215,173,88,.65);color:#fff}
.client-dashboard-main{width:min(1440px,100%);margin:0 auto;padding:clamp(28px,5vw,64px) clamp(16px,4vw,64px)}
.dashboard-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:30px}.dashboard-eyebrow{font-size:11px;letter-spacing:3px;color:#9a7229;font-weight:700}.dashboard-heading h1{font-size:clamp(28px,3vw,42px);line-height:1.1;margin:8px 0 8px;color:#10202d;letter-spacing:-.8px}.dashboard-heading p{margin:0;color:#65737e;font-size:14px;line-height:1.5}.dashboard-status{padding:9px 12px;border:1px solid #dfe5e9;border-radius:999px;background:#fff;font-size:12px;color:#53616b;white-space:nowrap}.dashboard-status span{display:inline-block;width:7px;height:7px;border-radius:50%;background:#2f9b67;margin-right:7px}
.dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.dashboard-card{min-height:170px;padding:24px;border:1px solid #dfe4e8;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(19,34,45,.055);display:flex;flex-direction:column;justify-content:flex-start;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.dashboard-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(19,34,45,.09);border-color:#d2b16d}.dashboard-card-icon{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;background:#f7f0e2;color:#a97922;font-size:19px;margin-bottom:20px}.dashboard-card strong{font-size:15px;color:#182b39}.dashboard-card small{font-size:12px;color:#6c7881;line-height:1.5;margin-top:6px}
@media (max-width:1100px){.client-app-header{gap:20px}.client-app-nav{justify-content:flex-start}.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.client-app-header{min-height:64px;padding:0 16px;gap:14px}.client-app-header .brand-home img{width:150px}.client-app-nav{display:none}.client-signout{margin-left:auto}.dashboard-heading{align-items:flex-start;flex-direction:column;margin-bottom:22px}.dashboard-status{align-self:flex-start}.dashboard-grid{grid-template-columns:1fr;gap:13px}.dashboard-card{min-height:145px;padding:20px}}
@media (max-width:520px){.client-dashboard-main{padding:25px 16px 38px}.dashboard-heading h1{font-size:28px}.dashboard-heading p{font-size:13px}.dashboard-card{min-height:132px;padding:18px}.dashboard-card-icon{width:38px;height:38px;margin-bottom:15px}}

.portal-form-error{margin:0 0 12px;padding:9px 11px;border:1px solid rgba(255,105,105,.45);border-radius:8px;background:rgba(120,15,20,.28);color:#ffd8d8;font-size:11px;line-height:1.4}
.client-dashboard-shell{min-height:100vh;background:#f3f5f7;color:#172431}.client-app-header{min-height:72px;padding:0 clamp(16px,4vw,64px);display:flex;align-items:center;gap:clamp(18px,3vw,42px);background:#071724;border-bottom:1px solid rgba(215,173,88,.7);color:#fff;position:sticky;top:0;z-index:20}.client-app-header .brand-home{flex:0 0 auto}.client-app-header .brand-home img{display:block;width:clamp(145px,13vw,205px);height:auto}.client-app-nav{display:flex;align-items:center;justify-content:center;gap:clamp(14px,2vw,28px);flex:1;min-width:0;overflow:auto;scrollbar-width:none}.client-app-nav::-webkit-scrollbar{display:none}.client-app-nav a{font-size:13px;color:#b9c5cd;white-space:nowrap;padding:26px 0 23px;border-bottom:2px solid transparent}.client-app-nav a:hover,.client-app-nav a.active{color:#fff;border-bottom-color:#d7ad58}.client-signout{border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.05);border-radius:8px;padding:9px 13px;color:#e9eef1;font-size:12px;white-space:nowrap;cursor:pointer}.client-signout:hover{border-color:rgba(215,173,88,.65);color:#fff}.client-dashboard-main{width:min(1440px,100%);margin:0 auto;padding:clamp(28px,5vw,64px) clamp(16px,4vw,64px)}.dashboard-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:30px}.dashboard-eyebrow{font-size:11px;letter-spacing:3px;color:#9a7229;font-weight:700}.dashboard-heading h1{font-size:clamp(28px,3vw,42px);line-height:1.1;margin:8px 0;color:#10202d;letter-spacing:-.8px}.dashboard-heading p{margin:0;color:#65737e;font-size:14px;line-height:1.5}.dashboard-status{padding:9px 12px;border:1px solid #dfe5e9;border-radius:999px;background:#fff;font-size:12px;color:#53616b;white-space:nowrap}.dashboard-status span{display:inline-block;width:7px;height:7px;border-radius:50%;background:#2f9b67;margin-right:7px}.dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.dashboard-card{min-height:170px;padding:24px;border:1px solid #dfe4e8;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(19,34,45,.055);display:flex;flex-direction:column;justify-content:flex-start;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.dashboard-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(19,34,45,.09);border-color:#d2b16d}.dashboard-card-icon{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;background:#f7f0e2;color:#a97922;font-size:19px;margin-bottom:20px}.dashboard-card strong{font-size:15px;color:#182b39}.dashboard-card small{font-size:12px;color:#6c7881;line-height:1.5;margin-top:6px}@media(max-width:1100px){.client-app-header{gap:20px}.client-app-nav{justify-content:flex-start}.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.client-app-header{min-height:64px;padding:0 16px;gap:14px}.client-app-header .brand-home img{width:150px}.client-app-nav{display:none}.client-signout{margin-left:auto}.dashboard-heading{align-items:flex-start;flex-direction:column;margin-bottom:22px}.dashboard-status{align-self:flex-start}.dashboard-grid{grid-template-columns:1fr;gap:13px}.dashboard-card{min-height:145px;padding:20px}}@media(max-width:520px){.client-dashboard-main{padding:25px 16px 38px}.dashboard-heading h1{font-size:28px}.dashboard-heading p{font-size:13px}.dashboard-card{min-height:132px;padding:18px}.dashboard-card-icon{width:38px;height:38px;margin-bottom:15px}}
