@font-face{font-family:FluxSystem;src:local('Inter'),local('Arial');font-display:swap}
:root{
  --paper:#f7f8f5;
  --ink:#172216;
  --muted:#5c6854;
  --line:#dce1d4;
  --orange:#ff7a42;
  --orange-hover:#ff8e5a;
  --orange-dark:#d95b26;
  --stage-bg:#ebf0e6;
  --stage-border:#d6dfce;
  --ease:cubic-bezier(.16,1,.3,1);
  --spring:cubic-bezier(.175,.885,.32,1.15);
  color-scheme:light;
  font-family:FluxSystem,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
  background:var(--paper);
}
*{box-sizing:border-box}
body{
  margin:0;
  min-height:100svh;
  background:var(--paper);
  color:var(--ink);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
button,input{font:inherit}
button,a,input{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
a{color:inherit;text-decoration:none}
button{cursor:pointer}
button:disabled{cursor:wait}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.skip{position:fixed;top:-100px;left:16px;padding:14px;background:#fff;z-index:99;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,0.15)}
.skip:focus{top:16px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* ══════════════════════════════════════════════════════════════════
   AUTH LAYOUT (Split View Grid)
   ══════════════════════════════════════════════════════════════════ */
.auth-layout{
  display:grid;
  grid-template-columns:minmax(480px,1.1fr) minmax(480px,0.9fr);
  min-height:100svh;
  background:var(--paper);
  position:relative;
}
@media(min-width:1500px){
  .auth-layout{
    grid-template-columns:minmax(580px,1.15fr) minmax(520px,0.85fr);
    max-width:1720px;
    margin:0 auto;
  }
}

/* ══════════════════════════════════════════════════════════════════
   LEFT SHOWCASE PANEL (.story) - LIVING CANVAS WITH 3D PARALLAX
   ══════════════════════════════════════════════════════════════════ */
.story{
  margin:18px;
  border-radius:24px;
  background:var(--stage-bg)!important;
  border:1px solid var(--stage-border)!important;
  box-shadow:0 14px 40px -12px rgba(24,35,24,0.07)!important;
  position:relative;
  overflow:hidden;
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  padding:38px 44px 34px!important;
  min-height:calc(100svh - 36px)!important;
  perspective:1200px;
  isolation:isolate;
}

/* Living Ambient Mesh Aurora */
.ambient-glow-wrap{
  position:absolute;
  inset:0;
  overflow:hidden;
  border-radius:24px;
  pointer-events:none;
  z-index:1;
}
.ambient-orb{
  position:absolute;
  border-radius:50%;
  filter:blur(75px);
  opacity:.5;
  will-change:transform;
}
.orb-orange{
  width:340px;
  height:340px;
  background:radial-gradient(circle,rgba(255,122,66,0.3) 0%,transparent 70%);
  top:12%;
  left:10%;
  animation:orb-drift-1 12s ease-in-out infinite alternate;
}
.orb-sage{
  width:400px;
  height:400px;
  background:radial-gradient(circle,rgba(103,122,85,0.34) 0%,transparent 70%);
  bottom:8%;
  right:5%;
  animation:orb-drift-2 15s ease-in-out infinite alternate;
}
.orb-sun{
  width:280px;
  height:280px;
  background:radial-gradient(circle,rgba(255,175,95,0.22) 0%,transparent 70%);
  top:45%;
  left:35%;
  animation:orb-drift-3 10s ease-in-out infinite alternate;
}
@keyframes orb-drift-1{
  0%{transform:translate(0,0) scale(1)}
  100%{transform:translate(42px,32px) scale(1.15)}
}
@keyframes orb-drift-2{
  0%{transform:translate(0,0) scale(1)}
  100%{transform:translate(-38px,-48px) scale(1.12)}
}
@keyframes orb-drift-3{
  0%{transform:translate(0,0) scale(1)}
  100%{transform:translate(28px,-32px) scale(.88)}
}

/* Mouse-Driven Interactive Spotlight */
.story-spotlight{
  position:absolute;
  inset:0;
  background:radial-gradient(
    circle 420px at var(--spotlight-x,50%) var(--spotlight-y,50%),
    rgba(255,122,66,0.14),
    transparent 65%
  );
  pointer-events:none;
  transition:opacity .3s ease;
  z-index:2;
}

.story-brand-wrap{
  position:relative;
  z-index:10;
  display:flex;
  align-items:center;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  transition:transform .25s var(--ease),opacity .25s var(--ease);
}
.brand:hover{
  transform:translateY(-1.5px);
  opacity:.92;
}
.brand img{
  object-fit:contain;
}

/* Center Stage with 3D Parallax & Smooth Slide */
.story-stage{
  position:relative;
  z-index:5;
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px 0;
  margin:auto 0;
  min-height:520px;
  transform-style:preserve-3d;
  overflow:hidden;
  border-radius:20px;
}
.story-illustration{
  max-width:94%;
  max-height:520px;
  width:auto;
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 22px 42px rgba(20,32,20,0.09)) drop-shadow(0 4px 12px rgba(20,32,20,0.04));
  animation:smooth-breathe 7.5s cubic-bezier(.45,.05,.55,.95) infinite;
  will-change:transform;
  transform-style:preserve-3d;
  transition:filter .3s ease;
}
.story:hover .story-illustration{
  filter:drop-shadow(0 28px 50px rgba(20,32,20,0.13)) drop-shadow(0 6px 16px rgba(20,32,20,0.06));
}
@keyframes smooth-breathe{
  0%,100%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-10px) scale(1.008)}
}
body.is-sliding .story-illustration{
  animation:none!important;
}
@media(min-width:1440px){
  .story-illustration{
    max-height:560px;
    max-width:96%;
  }
}

/* ══════════════════════════════════════════════════════════════════
   TAGDA HORIZONTAL CAROUSEL-SLIDE VIEWPORT & TRACK (SINGLE SLIDE)
   ══════════════════════════════════════════════════════════════════ */
.slide-viewport{
  width:100%;
  max-width:488px;
  margin:auto;
  overflow:hidden;
  position:relative;
}
.slide-track{
  display:flex;
  width:200%;
  will-change:transform;
}
.slide-item{
  width:50%;
  flex-shrink:0;
  box-sizing:border-box;
}

/* ══════════════════════════════════════════════════════════════════
   RIGHT FORM PANEL (.form-panel) - PROFESSIONAL CORPORATE FORM
   ══════════════════════════════════════════════════════════════════ */
.form-panel{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:100svh;
  padding:28px 48px;
  background:transparent;
}
.form-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:44px;
}
.mobile-brand{display:none}
.nav-pill-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12.5px;
  font-weight:600;
  color:#43513a;
  padding:8px 18px;
  border-radius:999px;
  background:#ffffff;
  border:1.5px solid #d5ddcc;
  box-shadow:0 2px 6px rgba(0,0,0,0.02);
  transition:all .22s var(--ease);
}
.nav-pill-btn:hover{
  background:#f1f5ec;
  color:#151f12;
  border-color:#b8c5ad;
  transform:translateY(-2px);
  box-shadow:0 6px 14px rgba(0,0,0,0.06);
}
.nav-pill-btn .btn-arrow{
  font-size:13px;
  transition:transform .22s var(--ease);
}
.back-pill:hover .btn-arrow{
  transform:translateX(-3px);
}
.nav-help:hover .btn-arrow{
  transform:translate(2px,-2px);
}

/* Form Content Container */
.form-content{
  width:100%;
  max-width:440px;
  margin:auto;
  padding:24px 0;
}
.screen-register .form-content{
  max-width:488px;
  padding:16px 0;
}
.screen-otp .form-content{
  max-width:440px;
  padding:20px 0;
}

/* Steps Indicator */
.steps{
  display:flex;
  align-items:center;
  gap:16px;
  margin:0 0 28px;
  padding:0;
  list-style:none;
}
.steps li{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:600;
  color:#6f7c63;
  transition:color .25s var(--ease);
}
.steps li>span{
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  border-radius:50%;
  border:1.5px solid #c2ccb8;
  background:#edf2e7;
  font-size:10px;
  font-weight:700;
  color:#506045;
  transition:all .28s var(--spring);
}
.steps .current{
  color:#152113;
  font-weight:700;
}
.steps .current>span{
  background:var(--orange);
  border-color:var(--orange);
  color:#ffffff;
  box-shadow:0 3px 12px rgba(255,122,66,0.45);
  transform:scale(1.1);
}
.steps .complete{
  color:#2f3f26;
}
.steps .complete>span{
  background:#23321d;
  border-color:#23321d;
  color:#e4f2dc;
}

/* Form Intro Headings */
.form-intro{
  margin-bottom:26px;
}
.form-intro .eyebrow{
  display:inline-block;
  font-size:10.5px;
  font-weight:800;
  letter-spacing:1.8px;
  color:#6b795f;
  text-transform:uppercase;
  margin-bottom:6px;
}
.form-intro h1{
  font-size:38px;
  line-height:1.12;
  font-weight:700;
  letter-spacing:-1.4px;
  margin:4px 0 10px;
  color:#152114;
}
.screen-register .form-intro h1{
  font-size:35px;
  letter-spacing:-1.2px;
}
.form-intro p{
  font-size:14.5px;
  line-height:1.65;
  color:var(--muted);
  margin:0;
}
.email-destination{
  font-size:15px;
  color:#192615;
  overflow-wrap:anywhere;
  display:inline-block;
  margin-top:6px;
}

/* Alerts */
.alert{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:14px 16px;
  border:1.5px solid;
  border-radius:10px;
  font-size:13px;
  line-height:1.6;
  margin-bottom:22px;
  overflow-wrap:anywhere;
}
.alert-error{
  color:#9a3c2b;
  background:#fdf2eb;
  border-color:#ecc5b7;
}
.alert-notice{
  color:#2f4e1f;
  background:#edf6e4;
  border-color:#c8ddb4;
}
.alert>span{
  display:grid;
  place-items:center;
  flex:none;
  width:20px;
  height:20px;
  border:1.5px solid currentColor;
  border-radius:50%;
  font-size:11px;
  font-weight:700;
}

/* Fields & Inputs with Liquid Focus Physics */
.field{
  min-width:0;
  margin-bottom:18px;
}
.field label,.otp-form>label{
  display:block;
  font-size:12.5px;
  font-weight:600;
  margin-bottom:8px;
  color:#1f2b19;
}
.field input{
  width:100%;
  min-width:0;
  height:52px;
  border:1.5px solid #cbd4c3;
  border-radius:10px;
  background:#ffffff;
  padding:0 16px;
  outline:none;
  color:var(--ink);
  font-size:14px;
  transition:border-color .22s var(--ease),box-shadow .22s var(--ease),transform .18s var(--ease);
}
.field input::placeholder{
  color:#919b88;
  font-size:13.5px;
}
.field input:hover{
  border-color:#8fa082;
}
.field input:focus{
  background:#ffffff;
  border-color:var(--orange);
  box-shadow:0 0 0 4px rgba(255,122,66,0.18),0 6px 16px -2px rgba(255,122,66,0.12);
  transform:translateY(-1.5px);
}
.field input:user-invalid{
  border-color:#b94f36;
}
.input-wrap{
  position:relative;
}
.input-wrap>svg{
  position:absolute;
  left:15px;
  top:16px;
  width:20px;
  height:20px;
  color:#6f7c63;
  pointer-events:none;
  transition:color .2s var(--ease),transform .2s var(--ease);
}
.input-wrap:focus-within>svg{
  color:var(--orange-dark);
  transform:scale(1.08);
}
.input-wrap>svg+input{
  padding-left:46px;
}
.password-wrap input{
  padding-right:48px;
}
.toggle-password{
  position:absolute;
  right:4px;
  top:4px;
  min-width:44px;
  height:44px;
  background:transparent;
  border:0;
  color:#738167;
  border-radius:6px;
  display:grid;
  place-items:center;
  transition:background .2s var(--ease),color .2s var(--ease),transform .15s ease;
}
.toggle-password:hover{
  background:#eef2e7;
  color:#2e3c25;
}
.toggle-password:active{
  transform:scale(.92);
}
.toggle-password[aria-pressed=true]{
  color:var(--orange-dark);
  background:#f6e8dc;
}
.field-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.form-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:2px 0 22px;
  font-size:12.5px;
}
.check{
  display:flex;
  gap:9px;
  align-items:center;
  cursor:pointer;
  font-size:12.5px;
  line-height:1.6;
}
.check input{
  appearance:auto;
  accent-color:#263420;
  width:16px;
  height:16px;
  margin:0;
  flex:none;
}
.session-hint{
  font-size:11px;
  color:#828e75;
}
.terms-check{
  align-items:flex-start;
  margin:16px 0 22px;
  color:#5c6854;
  font-size:12px;
}
.terms-check input{
  margin-top:2px;
}
.terms-check a{
  color:#1b2716;
  text-decoration:underline;
  text-underline-offset:3px;
  font-weight:600;
}

/* Submit CTA Button with Liquid Light Sheen */
.submit{
  width:100%;
  height:53px;
  border:1px solid rgba(255,122,66,0.6);
  background:linear-gradient(135deg,#ff7a42 0%,#ff6220 100%);
  color:#ffffff;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 22px;
  font-size:14.5px;
  font-weight:700;
  box-shadow:0 8px 24px -3px rgba(255,122,66,0.38);
  position:relative;
  overflow:hidden;
  transition:transform .24s var(--ease),box-shadow .24s var(--ease),background .25s ease;
}
.submit:before{
  content:'';
  position:absolute;
  top:0;
  left:-100%;
  width:60%;
  height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,0.32),transparent);
  transform:skewX(-20deg);
  transition:left .75s ease;
  pointer-events:none;
}
.submit:hover:before{
  left:140%;
}
.submit:hover{
  background:linear-gradient(135deg,#ff8852 0%,#ff6f2e 100%);
  box-shadow:0 14px 32px -4px rgba(255,122,66,0.52);
  transform:translateY(-2.5px) scale(1.008);
}
.submit:active{
  transform:translateY(1px) scale(.985);
  box-shadow:0 4px 12px -2px rgba(255,122,66,0.35);
}
.submit-arrow{
  font-size:22px;
  font-weight:400;
  transition:transform .24s var(--spring);
}
.submit:hover .submit-arrow{
  transform:translate(4px,-4px) scale(1.1);
}
.submit:disabled{
  opacity:.7;
  transform:none;
}
.submit.is-loading .submit-arrow{
  font-size:0;
  width:18px;
  height:18px;
  border:2.5px solid rgba(255,255,255,0.35);
  border-top-color:#ffffff;
  border-radius:50%;
  animation:orbit-turn .7s linear infinite;
}

/* Switch Links */
.account-switch{
  text-align:center;
  font-size:12.5px;
  color:#697561;
  margin:22px 0 0;
}
.account-switch a{
  color:#182514;
  margin-left:5px;
  font-weight:700;
  transition:color .2s var(--ease);
}
.account-switch a:hover,.text-button:hover{
  color:var(--orange-dark);
}
.account-switch span{
  display:inline-block;
  margin-left:3px;
  transition:transform .2s var(--ease);
}
.account-switch a:hover span{
  transform:translate(2.5px,-2.5px);
}
.forgot-link{
  display:inline-block!important;
  margin-top:10px!important;
  color:#9a5c2b!important;
  font-weight:700!important;
  transition:color .2s var(--ease);
}
.forgot-link:hover{
  color:var(--orange-dark)!important;
}

/* Security note below */
.quiet-note{
  border-top:1px solid #dce1d2;
  margin-top:28px;
  padding-top:18px;
  display:flex;
  align-items:flex-start;
  gap:9px;
  color:#738068;
  font-size:11.5px;
  line-height:1.7;
}
.quiet-note svg{
  width:16px;
  height:18px;
  flex:none;
}

/* Footer */
.auth-footer{
  display:flex;
  justify-content:space-between;
  gap:15px;
  align-items:center;
  border-top:1px solid #dce0d1;
  min-height:54px;
  font-size:10.5px;
  color:#78846c;
}
.auth-footer nav{
  display:flex;
  gap:18px;
}
.auth-footer a:hover{
  color:#293620;
}
.footer-mark{
  font-size:9px;
  letter-spacing:1.2px;
  font-weight:700;
}
.footer-mark span{
  font-size:11px;
  margin-left:4px;
}

/* OTP Code Cells */
.code-wrap{
  position:relative;
  height:62px;
  margin:12px 0 0;
}
.otp-input{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:2;
  opacity:.02;
  color:transparent;
  caret-color:transparent;
  border:0;
  font-size:16px;
  background:transparent;
}
.code-cells{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:9px;
  position:absolute;
  inset:0;
  pointer-events:none;
}
.code-cells span{
  display:grid;
  place-items:center;
  border:1.5px solid #cbd5c1;
  border-radius:10px;
  background:#ffffff;
  font-size:26px;
  font-weight:600;
  color:#1a2715;
  transition:background .2s var(--ease),border-color .2s var(--ease),transform .25s var(--spring);
}
.code-cells span:empty:after{
  content:'';
  width:6px;
  height:6px;
  background:#b6c1ab;
  border-radius:50%;
}
.code-cells span.filled{
  background:#eaf2e0;
  border-color:#8ba075;
  transform:translateY(-2px) scale(1.04);
}
.code-wrap:focus-within .code-cells{
  outline:2px solid #b58c51;
  outline-offset:5px;
  border-radius:10px;
}
.code-wrap:focus-within .code-cells span.active{
  border-color:var(--orange);
  background:#ffffff;
  box-shadow:0 0 0 3px rgba(255,122,66,0.22);
  transform:scale(1.05);
}
.otp-form .field-hint{
  margin:14px 0 24px;
}
.field-hint{
  font-size:11.5px;
  line-height:1.6;
  color:#738069;
  margin-top:8px;
}
.resend-block{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-size:12px;
  color:#6c7962;
  margin-top:20px;
}
.resend-form{margin:0}
.text-button{
  background:none;
  border:0;
  color:#23321b;
  font-size:12px;
  font-weight:700;
  padding:8px 4px;
  transition:color .2s var(--ease);
}
.text-button span{
  font-size:15px;
  margin-left:4px;
}
.inbox-note{
  display:flex;
  gap:11px;
  padding:15px 16px;
  background:#e9ede1;
  border:1.5px solid #d5dec9;
  border-radius:10px;
  font-size:12px;
  line-height:1.65;
  color:#5c6853;
  margin:16px 0 20px;
}
.inbox-note svg{
  width:18px;
  height:18px;
  flex:none;
  margin-top:2px;
  color:#5a684f;
}
.inbox-note p{margin:0}
.switch-account{
  display:block;
  text-align:center;
  font-size:12px;
  color:#4f5e42;
  transition:color .2s var(--ease);
}
.switch-account span{margin-left:4px}

/* Password Rules */
.password-rules{
  display:flex;
  gap:16px;
  font-size:10.5px;
  color:#6b775f;
  margin-top:-4px;
  flex-wrap:wrap;
}
.password-rules span:before{
  content:'○';
  margin-right:4px;
}
.password-rules .passed{
  color:#315a23;
  font-weight:700;
}
.password-rules .passed:before{
  content:'✓';
}
.match-hint{
  display:block;
  margin-bottom:-6px;
  color:#a5452d;
  font-size:11px;
}
.match-hint.matches{
  color:#3a6528;
}

@keyframes orbit-turn{to{transform:rotate(360deg)}}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════════════ */
@media(max-width:1150px){
  .auth-layout{
    grid-template-columns:minmax(420px,1fr) minmax(440px,1fr);
  }
  .story{
    padding:30px 30px 26px!important;
  }
  .story-illustration{
    max-height:440px;
  }
  .form-panel{
    padding:20px 32px;
  }
}
@media(max-width:880px){
  .auth-layout{
    display:block;
    padding:0;
    min-height:100svh;
  }
  .story{
    display:none!important;
  }
  .form-panel{
    padding:20px 24px 32px;
    min-height:100svh;
  }
  .mobile-brand{
    display:flex;
    align-items:center;
  }
  .mobile-brand img{
    height:32px;
    width:auto;
    max-width:130px;
    object-fit:contain;
    display:block;
  }
  .back-pill{
    display:none;
  }
  .form-content,.screen-register .form-content{
    max-width:460px;
    margin:auto;
    padding:28px 0 36px;
  }
}
@media(max-width:480px){
  .form-panel{
    padding:16px 20px 28px;
  }
  .form-intro h1{
    font-size:32px;
  }
  .screen-register .form-intro h1{
    font-size:29px;
  }
  .field-grid{
    grid-template-columns:1fr;
    gap:0;
  }
  .code-cells{
    gap:6px;
  }
  .code-cells span{
    font-size:22px;
    border-radius:8px;
  }
  .footer-mark{
    display:none;
  }
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
  .story-illustration,.ambient-orb{
    animation:none!important;
  }
}
@media(forced-colors:active){
  .otp-input{
    opacity:1;
    color:CanvasText;
    caret-color:CanvasText;
    border:1px solid CanvasText;
    letter-spacing:.6em;
  }
  .code-cells{display:none}
}
html:not(.auth-js) .otp-input{
  opacity:1;
  color:var(--ink);
  caret-color:var(--ink);
  border:1px solid #cfd7c4;
  border-radius:9px;
  padding:0 20px;
  font-size:26px;
  letter-spacing:.55em;
}
html:not(.auth-js) .code-cells{
  display:none;
}
