/* Brand: light-purple #7c69e3 (tailwind light-purple), blue→purple like gradient-ns.
   Split-screen auth layout (layouts/auth-split.blade.php).
   Adapted from the trapezoid concept in extra/login-register. Loaded after Tailwind (app.css). */
@font-face{font-family:'Agency FB';src:url('/assets/fonts/agency/agency-fb.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
:root{
  --bg:#fcfcff;--ink:#1e1d32;--muted:#6f6d85;--line:#e3e2ef;
  --accent:#7c69e3;--brand:#6552dc;--link:#5440c9;
  --display:'Agency FB','Agency Fb','Roboto Condensed',Arial Narrow,sans-serif;--body:'Roboto',Arial,sans-serif;
  --slant:clamp(76px,7vw,140px);--stripe:13px;
}
body.auth-split{margin:0;background:var(--bg);color:var(--ink);font-family:var(--body);font-size:15px;line-height:1.5;min-height:100vh;min-height:100svh;overflow-x:hidden}
.auth-split button,.auth-split input{font:inherit}
.auth-split a,.auth-split button,.auth-split input{-webkit-tap-highlight-color:transparent}
.auth-split button{cursor:pointer}
.auth-split button:disabled{cursor:not-allowed}
.auth-split a:focus-visible,.auth-split button:focus-visible,.auth-split input:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.auth-split [hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* ---------- Shell ---------- */
.shell{position:relative;display:grid;grid-template-columns:minmax(0,58fr) minmax(0,42fr);width:100%;min-height:100vh;min-height:100svh;overflow:clip}

/* ---------- Cover (trapezoid) ---------- */
.visual{position:relative;isolation:isolate;overflow:hidden;width:calc(100% + var(--slant));min-height:690px;padding:34px calc(var(--slant) + 34px) 34px 40px;display:flex;flex-direction:column;justify-content:space-between;color:#fff;background:var(--brand);clip-path:polygon(0 0,100% 0,calc(100% - var(--slant)) 100%,0 100%)}
.visual::after{content:'';position:absolute;inset:0;z-index:4;background:var(--brand);clip-path:polygon(calc(100% - var(--stripe)) 0,100% 0,calc(100% - var(--slant)) 100%,calc(100% - var(--slant) - var(--stripe)) 100%);pointer-events:none}
.cover-stage{position:absolute;inset:0;z-index:0;overflow:hidden;isolation:isolate;background:linear-gradient(140deg,#3b3a63,#1e1d32)}
.cover-stage .visual-image{position:absolute;inset:0;z-index:0;display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;opacity:0;visibility:hidden;transform:scale(1);transition:opacity 1.15s ease,visibility 1.15s;will-change:transform,opacity}
.cover-stage .visual-image.is-active{opacity:1;visibility:visible;z-index:1}
.cover-stage[data-motion="slides"] .visual-image{animation:coverDrift 18s ease-in-out infinite alternate both}
.cover-stage.is-paused .visual-image{animation-play-state:paused!important}
.cover-stage .visual-image.is-missing{visibility:hidden!important;opacity:0!important}
@keyframes coverDrift{0%{transform:scale(1.04) translate3d(-.7%,.5%,0)}100%{transform:scale(1.18) translate3d(2%,-1.4%,0)}}
.visual-shade{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(150deg,#1e1d3266,transparent 50%),linear-gradient(0deg,#141326d0,transparent 65%)}
.visual>.brand,.visual-content,.visual-footer{position:relative;z-index:2}
.brand{display:inline-flex;align-items:center;width:max-content}
.brand img{display:block;height:48px;width:auto;max-width:160px;filter:drop-shadow(0 3px 8px #0009)}
.visual-content{margin-top:auto;padding:70px 0 44px;max-width:100%;animation:rise .9s .15s both}
.eyebrow{display:flex;gap:9px;align-items:center;font-size:10px;letter-spacing:2.2px;font-weight:700;color:#f2f0ec}
.status-dot,.tiny-dot{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 10px #7c69e355;flex-shrink:0}
.visual h1{font:700 clamp(66px,7vw,120px)/.9 var(--display);letter-spacing:.01em;margin:24px 0;color:#fff}
.visual h1 .accent{color:#a99cf5}
.visual p{font-size:15px;line-height:1.7;color:#e6e3ee;margin:0}
.visual-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid #ffffff39;padding-top:18px;font-size:10px;font-weight:600;letter-spacing:1.5px;color:#ece9f2}
.cover-control{display:inline-flex;align-items:center;gap:10px}
#coverPlay{display:grid;place-items:center;width:28px;height:28px;padding:0;color:#fff;background:#1119;border:1px solid #fff5;border-radius:7px;backdrop-filter:blur(6px);font-size:10px}
#coverPlay:hover{background:#111c}

/* ---------- Form panel ---------- */
.panel{position:relative;z-index:5;display:flex;flex-direction:column;justify-content:space-between;min-width:0;padding:26px clamp(24px,3vw,58px) 22px calc(var(--slant) + 22px);pointer-events:none}
.panel-nav,.form-area,.panel-footer{pointer-events:auto}
.panel-nav,.panel-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.panel-nav{min-height:50px;padding-right:185px} /* room for the floating menu button */
.nav-label{display:flex;align-items:center;gap:8px;white-space:nowrap;color:var(--muted);font-size:10px;font-weight:700;letter-spacing:1.5px}
.tiny-dot{box-shadow:none}
.nav-link{font-size:13px;font-weight:700;color:var(--link);white-space:nowrap}
.nav-link span{margin-left:5px}
.form-area{width:100%;max-width:525px;margin:26px auto 35px;animation:rise .7s .08s both}
.overline{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:var(--muted)}
.overline>span:first-child{height:1px;width:25px;background:var(--brand)}

/* Animated, outlined heading that overlaps the slanted cover edge. */
.heading h2{display:flex;flex-wrap:wrap;align-items:baseline;gap:.01em;font:700 clamp(76px,8.5vw,150px)/1 var(--display);letter-spacing:.01em;margin:4px 0 12px calc(-1 * var(--slant) - 18px);color:var(--brand);width:max-content;max-width:calc(100% + var(--slant) + 18px);min-height:1.07em;position:relative;z-index:2;filter:drop-shadow(0 7px 9px #1e1d3226);-webkit-text-stroke:9px #fff;paint-order:stroke fill}
.heading h2 .word{display:inline-flex;white-space:nowrap}
.letter{display:inline-block;overflow:visible;padding:0 .015em .09em;margin-bottom:-.1em}
.letter>span{display:block;animation:letterIn .75s cubic-bezier(.16,1,.3,1) both;animation-delay:calc(var(--i)*65ms + 80ms)}
.letter.space{width:.24em}
@keyframes letterIn{from{transform:translateY(120%) rotate(9deg);opacity:0;filter:blur(5px)}to{transform:translateY(0) rotate(0);opacity:1;filter:blur(0)}}
.heading p{margin:0 0 24px;color:#4a4766;font-size:15px;font-weight:600;line-height:1.6}

/* Fields */
.field{margin:0 0 15px}
.field label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}
.field-row{display:flex;align-items:stretch;gap:8px}
.input-wrap{flex:1;min-width:0;display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:13px;background:#fff;min-height:52px;padding:0 14px;transition:border-color .2s,box-shadow .2s}
.input-wrap:focus-within{border-color:var(--brand);box-shadow:0 0 0 4px #7c69e31a}
.input-wrap:has(input[aria-invalid=true]){border-color:#bf5757}
.input-wrap:has(input[readonly]){background:#f6f5fc}
.input-wrap>svg,.eye svg{width:19px;height:19px;stroke:#8381a0;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;fill:none;flex-shrink:0}
.input-wrap input{min-width:0;flex:1;width:100%;border:0;background:transparent;outline:none!important;box-shadow:none;font-size:14px;color:var(--ink);padding:15px 0}
.input-wrap input:focus{border:0!important;box-shadow:none!important;outline:none!important}
.input-wrap input::placeholder{color:#a4a2b8}
.eye{padding:5px;border:0;background:none;display:grid;place-items:center}
.eye-slash{display:none}
.eye[aria-pressed=true] .eye-slash{display:block}
.field-note{display:block;font-size:12px;font-weight:600;margin-top:6px}
.link-button{border:0;background:none;padding:0;margin-top:6px;font-size:12px;font-weight:700;color:var(--link);text-decoration:underline;text-underline-offset:4px;text-decoration-color:#b9aff2}

/* Small chunky companion button (Verify / Confirm) */
.mini-button{flex-shrink:0;min-width:96px;padding:0 16px;border:2px solid #1e1d32;border-radius:13px;background:linear-gradient(160deg,#b0e8ff,#67b9ee);color:#1c2b3d;font:700 18px/1 var(--display);letter-spacing:.03em;box-shadow:0 4px 0 #1e1d32;transition:transform .15s,box-shadow .15s,background .2s;margin-bottom:4px}
.mini-button:hover:not(:disabled){background:linear-gradient(150deg,#b7eeff,#479bde);transform:translateY(-1px);box-shadow:0 5px 0 #1e1d32}
.mini-button:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #1e1d32}
.mini-button.is-primary{background:linear-gradient(180deg,#9c8cff 0%,#8573ec 50%,#6552dc 51%,#5a46d4 100%);color:#fff}
.mini-button:disabled{opacity:.55}

.form-options{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:19px 0 24px;font-size:12px;font-weight:600}
.check{display:flex;align-items:center;gap:7px;color:#5f5c78;cursor:pointer}
.check input{width:16px;height:16px;margin:0;accent-color:var(--brand)}
.form-options a,.switch a{font-weight:700;color:var(--link);text-decoration:underline;text-underline-offset:4px;text-decoration-color:#b9aff2}
.form-hint{text-align:center;font-size:12px;color:var(--muted);margin:12px 0 0}

/* ---------- Primary button ---------- */
.fancy-button{position:relative;isolation:isolate;overflow:hidden;width:100%;height:62px;margin-top:8px;border:3px solid #1e1d32;border-radius:20px;background:linear-gradient(180deg,#9c8cff 0%,#8573ec 50%,#6552dc 51%,#5a46d4 100%);color:#fff;display:flex;align-items:center;justify-content:center;padding:0 0 0 21px;text-align:center;box-shadow:0 6px 0 #1e1d32,0 11px 22px #2a206020;transition:transform .22s,box-shadow .22s;--mx:50%;--my:50%}
.fancy-button::before{content:'';position:absolute;left:15px;top:8px;width:30px;height:4px;background:#f4f1ff;border-radius:8px;box-shadow:38px 0 0 -1px #f4f1ff;pointer-events:none}
.button-glow{position:absolute;inset:0;z-index:-1;opacity:0;background:radial-gradient(circle at var(--mx) var(--my),#c9bfff,#8f7ff0 55%,#6552dc);transition:opacity .3s}
.button-shine{position:absolute;top:-60%;bottom:-60%;width:25%;left:-40%;transform:skewX(-24deg);background:linear-gradient(90deg,transparent,#ffffff66,transparent);pointer-events:none;animation:shine 5s 1.5s infinite}
.button-text{display:grid;position:relative;z-index:2;height:26px;margin-right:22%;overflow:hidden;font:700 24px/26px var(--display);letter-spacing:.04em;filter:drop-shadow(0 2px 0 #3a2b99)}
.button-text>span{grid-area:1/1;display:block;white-space:nowrap;text-align:center;transition:transform .35s cubic-bezier(.2,.75,.2,1)}
/* Both labels share one grid cell, so the box is as wide as the longer one. */
.button-copy{transform:translateY(100%)}
.button-arrow{position:absolute;right:0;top:0;height:100%;width:27%;display:grid;place-items:center;padding-left:12%;background:linear-gradient(160deg,#b0e8ff,#67b9ee);clip-path:polygon(20% 0,100% 0,100% 100%,0 100%);color:#1c2b3d;transition:background .25s,color .25s}
.button-arrow::before{content:'';position:absolute;inset:0;z-index:1;background:#fff;clip-path:polygon(20% 0,25% 0,5% 100%,0 100%)}
.button-impact{position:absolute;right:2px;top:50%;height:100%;width:auto;max-width:none;transform:translateY(-50%);pointer-events:none;user-select:none}
.fancy-button:hover:not(:disabled),.fancy-button:focus-visible{transform:translateY(-2px);box-shadow:0 8px 0 #1e1d32,0 13px 22px #2a206020}
.fancy-button:hover:not(:disabled) .button-glow,.fancy-button:focus-visible .button-glow{opacity:1}
.fancy-button:hover:not(:disabled) .button-label,.fancy-button:focus-visible .button-label{transform:translateY(-100%)}
.fancy-button:hover:not(:disabled) .button-copy,.fancy-button:focus-visible .button-copy{transform:translateY(0)}
.fancy-button:hover:not(:disabled) .button-arrow,.fancy-button:focus-visible .button-arrow{background:linear-gradient(150deg,#b7eeff,#479bde);color:#173044}
.fancy-button:active:not(:disabled){transform:translateY(4px);box-shadow:0 1px 0 #1e1d32}
.fancy-button:disabled{filter:grayscale(.65);opacity:.6}
.fancy-button:disabled .button-shine{display:none}
@keyframes shine{0%,65%{left:-40%}90%,100%{left:130%}}

.switch{text-align:center;font-size:13px;color:var(--muted);margin:24px 0 0}
.panel-footer{font-size:11px;color:#8a87a0}
.message{font-size:13px;line-height:1.5;background:#f3f0ff;border:1px solid #cfc6f7;padding:12px 14px;border-radius:10px;margin:0 0 18px;color:#3f3291}
.message[data-kind=error]{background:#fff1ef;color:#a43232;border-color:#e6b1ac}
.message ul{margin:0;padding-left:18px;list-style:disc}
@keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}

/* Floating menu (components/front/header-menu-drag) helpers normally from sagestyle.css */
.auth-split .separator{--separator-gap:1rem;display:flex;align-items:center;text-transform:uppercase;letter-spacing:.1em;font-weight:600}
.auth-split .separator::before,.auth-split .separator::after{content:'';height:2px;background-color:silver;flex-grow:1}
.auth-split .separator::before{margin-right:var(--separator-gap)}
.auth-split .separator::after{margin-left:var(--separator-gap)}
/* Keep the floating menu exactly as on the rest of the site (Tailwind default sans, 16px). */
body.auth-split #nav-menu,body.auth-split>nav{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;font-size:16px;line-height:1.5}

/* ---------- Responsive ---------- */
@media(min-width:961px) and (max-width:1200px){
  :root{--slant:65px;--stripe:10px}
  .shell{grid-template-columns:minmax(0,53fr) minmax(0,47fr)}
  .visual{padding-left:28px}
  .panel{padding-right:25px;padding-left:calc(var(--slant) + 15px)}
  .heading h2{margin-left:calc(-1 * var(--slant) - 12px);font-size:clamp(76px,9.5vw,112px)}
  .panel-nav{justify-content:flex-end}.panel-nav .nav-label{display:none}
}
/* Tablet / mobile: the side angle becomes a diagonal lower edge. */
@media(max-width:960px){
  :root{--slant:0px;--stripe:8px;--mobile-lean:clamp(24px,5vw,50px)}
  .shell{display:flex;flex-direction:column}
  .visual{width:100%;min-height:0;height:clamp(265px,44vw,400px);padding:22px 24px calc(var(--mobile-lean) + 33px);clip-path:polygon(0 0,100% 0,100% calc(100% - var(--mobile-lean)),0 100%)}
  .visual::after{clip-path:polygon(0 calc(100% - var(--stripe)),100% calc(100% - var(--mobile-lean) - var(--stripe)),100% calc(100% - var(--mobile-lean)),0 100%)}
  .visual-content{padding:20px 0 0;max-width:90%}
  .visual h1{font-size:clamp(42px,7vw,76px);margin:10px 0 0}
  .visual h1 br,.visual p,.visual-footer{display:none}
  .panel{flex:1;padding:12px clamp(20px,5vw,52px) 22px;pointer-events:auto}
  .panel-nav{max-width:525px;width:100%;margin:0 auto;padding-right:0}
  .form-area{margin:20px auto 28px}
  .heading h2{margin:4px 0 8px;font-size:clamp(74px,13vw,116px);max-width:100%;-webkit-text-stroke:6px #fff;filter:drop-shadow(0 4px 5px #1e1d3217)}
  .panel-footer{max-width:525px;width:100%;margin:0 auto}
  .input-wrap input{font-size:16px}
}
@media(max-width:420px){
  .visual{height:248px;padding:16px 18px 54px}
  .brand img{height:36px}
  .panel{padding-inline:19px}
  .visual h1{font-size:46px}
  .heading h2{font-size:70px}
  .button-text{font-size:21px}
  .nav-label{font-size:9px;letter-spacing:.7px}
  .panel-footer{flex-direction:column;align-items:flex-start;gap:2px}
  .mini-button{min-width:0;padding:0 12px}
}
@media(prefers-reduced-motion:reduce){
  .auth-split *,.auth-split *::before,.auth-split *::after{animation:none!important;transition:none!important}
  .heading h2{filter:none}
}

/* ---------- Scrolling: only the form moves, the cover stays put ----------
   The page itself still scrolls (best for mobile keyboards, address bars and focus
   scrolling); the cover is made sticky instead of giving the form its own scroller. */
.shell{align-items:start}
.visual{position:sticky;top:0;align-self:start;height:100vh;height:100svh;min-height:0}
.panel{min-height:100vh;min-height:100svh}
@media(min-width:961px) and (max-height:720px){
  .visual-content{padding:24px 0 26px}
  .visual h1{font-size:clamp(52px,5.4vw,84px);margin:14px 0}
}
@media(min-width:961px) and (max-height:560px){.visual p{display:none}}

/* Mobile/tablet: the banner scrolls up until a thin strip remains, then sticks. */
@media(max-width:960px){
  :root{--banner-h:clamp(265px,44vw,400px);--banner-peek:88px}
  /* The shell is a flex column here: stretch children to full width (the desktop
     `align-items:start` would shrink the form panel and push it to the left). */
  .shell{align-items:stretch}
  .visual{align-self:stretch;height:var(--banner-h);top:calc(var(--banner-peek) - var(--banner-h));z-index:6;clip-path:none}
  /* Opaque page-coloured wedge replaces the clipped corner, so form content scrolling
     underneath never shows through the diagonal edge. */
  .visual::before{content:'';position:absolute;inset:0;z-index:3;background:var(--bg);clip-path:polygon(100% calc(100% - var(--mobile-lean)),100% 101%,0 101%,0 100%);pointer-events:none}
  .panel{min-height:0}
  .visual-content,.visual>.brand{transition:opacity .25s ease}
  .shell.is-banner-collapsed .visual-content,.shell.is-banner-collapsed .visual>.brand{opacity:0;animation:none;pointer-events:none}
}
@media(max-width:420px){:root{--banner-h:248px;--banner-peek:76px}}
/* Short landscape phones: no room for a pinned strip, let the banner scroll away. */
@media(max-width:960px) and (max-height:520px){.visual{position:relative;top:auto}}
