:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#f4f8ff;background:#090b10;--blue:#438dff;--line:#33425a;--muted:#a7bad5;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:#090b10;-webkit-font-smoothing:antialiased;display:grid;place-items:center;padding:32px}button,input{font:inherit}button{touch-action:manipulation}button:focus-visible,input:focus-visible{outline:2px solid #9ed2ff;outline-offset:4px}
.authshell{width:min(1260px,100%);min-height:760px;display:grid;grid-template-columns:1.15fr .85fr;border:1px solid #2e3d54;border-radius:26px;overflow:hidden;background:#101722;box-shadow:0 35px 140px #0007}
.authbrand{position:relative;isolation:isolate;overflow:hidden;padding:48px;display:flex;flex-direction:column;justify-content:space-between;background:radial-gradient(ellipse at 80% 70%,#124d8955,transparent 70%),linear-gradient(135deg,#142b46,#0c1523)}
.wordmark{position:relative;z-index:2;width:220px;height:auto;object-fit:contain;object-position:left;max-width:80%}.brandcopy{position:relative;z-index:2;padding:80px 0 8px;max-width:510px}.kicker{color:#bbd3f0;font-size:9px;letter-spacing:.17em;font-weight:550;display:block;margin-bottom:25px}
.brandcopy h2{font-size:clamp(45px,5.3vw,74px);font-weight:520;letter-spacing:-.065em;line-height:1.02;margin:0}.brandcopy h2>span{color:#80b9ff}.brandcopy p{color:#acc3e2;font-size:14px;line-height:1.8;margin:25px 0 0}.auth-chapters{display:flex;gap:25px;margin-top:65px;font-size:8px;letter-spacing:.15em;color:#9cb8dc}
.auth-wave{position:absolute;width:550px;height:550px;left:35%;top:12%;transform:rotate(-35deg);z-index:0;opacity:.65}.auth-wave span{position:absolute;inset:0;border:1px solid #439afc;border-left-color:transparent;border-bottom-color:transparent;border-radius:50%;box-shadow:0 -8px 30px #1168c610}.auth-wave span:nth-child(2){inset:18px}.auth-wave span:nth-child(3){inset:36px}.auth-wave span:nth-child(4){inset:54px}.auth-wave span:nth-child(5){inset:72px;border-color:#7ee0ff;border-left-color:transparent;border-bottom-color:transparent}
.authcard{padding:50px 44px;display:flex;flex-direction:column;justify-content:center;background:#101722}.tabs{display:flex;gap:4px;border:1px solid #384a66;border-radius:11px;padding:4px;background:#0b1220;margin-bottom:36px}.tab{background:transparent;border:0;min-height:41px;flex:1;font-size:12px;font-weight:550;color:#a1b9d8;border-radius:8px;cursor:pointer}.tab.active{background:#294265;color:#ecf5ff}
.authcopy h1{font-size:33px;letter-spacing:-.055em;font-weight:550;margin:0}.authcopy p{font-size:13px;color:#a6bedf;line-height:1.7;margin:11px 0 29px}form{display:flex;flex-direction:column;gap:19px}label{display:flex;flex-direction:column;gap:9px;font-size:12px;font-weight:500;color:#b9d0ed}input{border:1px solid #435777;background:#0b1220;color:#ecf5ff;width:100%;border-radius:11px;padding:13px 15px;min-height:48px;font-size:15px;outline:none}input:focus{border-color:#8abfff}
.primary{background:#438dff;border:1px solid #438dff;color:#07162b;border-radius:11px;padding:14px;margin-top:6px;min-height:48px;font-size:13px;font-weight:650;cursor:pointer;transition:background .18s}.primary:hover{background:#79b1ff}.primary:disabled,.tab:disabled{opacity:.5;cursor:wait}
.error,.status{font-size:12px;line-height:1.7;overflow-wrap:anywhere}.error{color:#ffb0b0}.status{color:#9fe5c5}.error:empty,.status:empty{display:none}.accessnote{padding:15px;border:1px solid #344963;border-radius:11px;margin-top:22px;font-size:12px;line-height:1.7;color:#a6c1e6;background:#142136}.ownerlink{margin-top:25px;border:0;background:transparent;font-size:11px;color:#9eacc2;min-height:40px;cursor:pointer}.ownerlink:hover{color:white}.hidden{display:none!important}
@media(max-width:1000px){body{padding:25px}.authshell{grid-template-columns:1fr 1fr;min-height:680px}.authbrand{padding:35px}.authcard{padding:35px 30px}.brandcopy h2{font-size:53px}.wordmark{width:185px}.auth-chapters{gap:18px;font-size:7px}}
@media(max-width:700px){body{padding:0}.authshell{grid-template-columns:1fr;border:0;border-radius:0;min-height:100dvh}.authbrand{display:block;padding:30px 26px 25px;min-height:225px;border-bottom:1px solid #354a68}.wordmark{width:170px;max-width:70%}.brandcopy{padding:29px 0 0}.kicker{display:none}.brandcopy h2{font-size:34px;line-height:1.1}.brandcopy h2 br{display:none}.brandcopy p{font-size:12px;margin-top:12px}.auth-chapters{display:none}.auth-wave{left:45%;top:-230px;width:450px;height:450px;opacity:.45}.authcard{padding:30px 26px 35px;justify-content:flex-start}.tabs{margin-bottom:28px}.authcopy h1{font-size:29px}.authcopy p{font-size:12px}.tab{font-size:12px;min-height:44px}input{font-size:16px;min-height:49px}.primary{min-height:49px}.ownerlink{margin-top:20px}}
@media(prefers-reduced-motion:no-preference){.authbrand,.authcard{animation:auth-arrive .6s ease both}.authcard{animation-delay:.1s}@keyframes auth-arrive{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}}
a.ownerlink{display:inline-flex;align-items:center;align-self:flex-start;text-decoration:none}
label.teamcheck{display:flex;flex-direction:row;align-items:flex-start;gap:10px;font-size:12px;line-height:1.4;text-transform:none;letter-spacing:0}label.teamcheck input{width:18px;height:18px;min-height:0;flex:0 0 18px;margin-top:1px}label.teamcheck.hidden{display:none}

/* ---- Bluewater brand (owner, 2026-11-19): the sign in page looks like bluewaterco.ca. Same navy, electric blue,
   Barlow type and sea as the website. Loaded from this one file because it is the only stylesheet a signed out
   visitor is served. The white label theme still loads after it. ---- */
@font-face{font-family:'Barlow';src:url('/public/assets/fonts/barlow-regular.woff') format('woff');font-weight:400;font-display:swap}
@font-face{font-family:'Barlow';src:url('/public/assets/fonts/barlow-semibold.woff') format('woff');font-weight:600;font-display:swap}
@font-face{font-family:'Barlow';src:url('/public/assets/fonts/barlow-bold.woff') format('woff');font-weight:700;font-display:swap}
@font-face{font-family:'Barlow Condensed';src:url('/public/assets/fonts/barlow-condensed-extrabold.woff') format('woff');font-weight:800;font-display:swap}
html,body{background:#030a18}
body,body button,body input{font-family:'Barlow',system-ui,-apple-system,'Segoe UI',sans-serif}
body{color:#f4f7fd;min-height:100vh;margin:0}
.authshell{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);min-height:100vh;max-width:none;margin:0;padding:0;gap:0;background:#030a18}
.authbrand{position:relative;display:flex;flex-direction:column;justify-content:space-between;padding:44px 56px 56px;overflow:hidden;border:0;border-radius:0;background:linear-gradient(180deg,rgba(3,10,24,.55) 0%,rgba(3,10,24,.2) 38%,rgba(3,10,24,.92) 100%),linear-gradient(90deg,rgba(3,10,24,0) 60%,#030a18 100%),url('/public/assets/portal-wave.jpg') center/cover no-repeat #030a18}
.authbrand .wordmark{position:relative;z-index:1;width:210px;height:auto;max-width:60%}
.authbrand .auth-wave,.authbrand .auth-chapters{display:none}
.authbrand .brandcopy{position:relative;z-index:1;max-width:620px}
.authbrand .kicker{display:block;margin-bottom:16px;font-size:13px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:#5b9bff}
.authbrand h2{margin:0 0 16px;font-family:'Barlow Condensed','Arial Narrow',sans-serif;font-weight:800;text-transform:uppercase;font-size:clamp(52px,6.4vw,104px);line-height:.9;letter-spacing:.005em;color:#fff}
.authbrand h2 span{color:#2b7bff}
.authbrand p{margin:0;max-width:520px;font-size:18px;line-height:1.5;color:rgba(222,232,250,.78)}
.authcard{align-self:center;justify-self:center;width:min(440px,calc(100% - 48px));margin:40px 24px;padding:34px 32px 28px;box-sizing:border-box;border:1px solid rgba(120,165,255,.22);border-radius:22px;background:linear-gradient(140deg,rgba(43,123,255,.14),rgba(91,155,255,.03)),#071428;box-shadow:0 40px 100px -50px rgba(43,123,255,.85)}
.authcard .tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin:0 0 26px;border:1px solid rgba(120,165,255,.18);border-radius:999px;background:#030a18}
.authcard .tab{padding:11px 10px;border:0;border-radius:999px;background:transparent;color:rgba(222,232,250,.68);font-size:15px;font-weight:600;cursor:pointer;transition:background .3s cubic-bezier(.16,1,.3,1),color .3s cubic-bezier(.16,1,.3,1)}
.authcard .tab.active{background:linear-gradient(100deg,#1f6bff,#2b7bff 55%,#5b9bff);color:#fff;box-shadow:0 10px 26px -12px rgba(43,123,255,.9)}
.authcopy h1{margin:0 0 8px;font-family:'Barlow Condensed','Arial Narrow',sans-serif;font-weight:800;text-transform:uppercase;font-size:44px;line-height:.95;color:#fff}
.authcopy p{margin:0 0 22px;color:rgba(222,232,250,.68);font-size:15.5px;line-height:1.5}
.authcard form{display:grid;gap:16px}
.authcard form label{display:grid;gap:7px;font-size:13.5px;font-weight:600;color:#f4f7fd}
.authcard form input[type="text"],.authcard form input[type="email"],.authcard form input[type="password"],.authcard form input:not([type]){width:100%;box-sizing:border-box;padding:14px 15px;font-size:16px;color:#f4f7fd;border:1px solid rgba(120,165,255,.26);border-radius:12px;background:#0a1b36;transition:border-color .25s,box-shadow .25s}
.authcard form input:focus{outline:0;border-color:#5b9bff;box-shadow:0 0 0 4px rgba(91,155,255,.2)}
.authcard form input::placeholder{color:rgba(222,232,250,.4)}
.authcard form .primary,.authcard button.primary{width:100%;margin-top:4px;padding:15px 18px;border:0;border-radius:999px;background:linear-gradient(100deg,#1f6bff,#2b7bff 55%,#5b9bff);color:#fff;font-size:16px;font-weight:700;cursor:pointer;box-shadow:0 16px 36px -14px rgba(43,123,255,.95);transition:transform .25s cubic-bezier(.16,1,.3,1),box-shadow .25s cubic-bezier(.16,1,.3,1)}
.authcard form .primary:hover{transform:translateY(-1px);box-shadow:0 20px 40px -14px rgba(43,123,255,1)}
.authcard form .primary:disabled{opacity:.6;transform:none}
.authcard .error{color:#ff6b6b;font-weight:600;font-size:14px}
.authcard .status{color:#62e3ad;font-size:14px}
.authcard .ownerlink{display:inline-block;margin-top:16px;padding:0;border:0;background:none;color:#5b9bff;font-size:14.5px;font-weight:600;text-decoration:none;cursor:pointer}
.authcard .ownerlink:hover{color:#fff}
.authcard .accessnote{margin-top:16px;padding:14px 16px;border:1px solid rgba(120,165,255,.18);border-radius:14px;background:rgba(43,123,255,.07);color:rgba(222,232,250,.78);font-size:14px;line-height:1.5}
.authcard .teamcheck{grid-template-columns:auto 1fr;align-items:start;gap:10px;font-weight:400;color:rgba(222,232,250,.78)}
@media (max-width:900px){
  .authshell{grid-template-columns:1fr;grid-template-rows:auto 1fr}
  .authbrand{min-height:300px;padding:28px 24px 32px;background:linear-gradient(180deg,rgba(3,10,24,.5) 0%,rgba(3,10,24,.3) 40%,#030a18 100%),url('/public/assets/portal-wave.jpg') center/cover no-repeat #030a18}
  .authbrand .wordmark{width:170px}
  .authbrand h2{font-size:clamp(44px,12vw,64px)}
  .authbrand p{font-size:16px}
  .authcard{align-self:start;width:calc(100% - 32px);margin:-8px 16px 32px;padding:26px 20px 22px}
}
@media (prefers-reduced-motion:reduce){.authcard .tab,.authcard form .primary{transition:none}.authcard form .primary:hover{transform:none}}
html body{padding:0}
body .authshell{width:100%;border:0;border-radius:0;box-shadow:none;overflow:visible}
body .authbrand{min-height:100vh;box-sizing:border-box}
@media (max-width:900px){body .authbrand{min-height:300px}.authbrand h2{font-size:clamp(40px,11vw,60px);overflow-wrap:anywhere}.authbrand h2 br{display:inline}}
.authcopy h1{letter-spacing:.012em}
/* The sign in page and the website are one place: the logo and a plain link go back to bluewaterco.ca.
   A white label agency page (agency-brand.js swaps the wordmark) never links to Bluewater's site. */
.authbrand .bw-site{position:relative;z-index:1;display:inline-block;align-self:flex-start;line-height:0}
.authbrand .bw-site .wordmark{max-width:none}
.authbrand .bw-back{display:inline-block;margin-top:18px;color:#5b9bff;font-size:14.5px;font-weight:600;text-decoration:none}
.authbrand .bw-back:hover{color:#fff}
.authbrand:has(.agency-wordmark) .bw-back{display:none}
.authbrand:has(.agency-wordmark) .bw-site{pointer-events:none}
