/* Extracted from pages/home.php — v170 */
/* V25 · smart login hero — desktop copy left, form centered on the right; mobile form first. */
.ah-hero-layout{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:48px;}
.ah-hero-inner.has-auth-card .ah-hero-layout{grid-template-columns:minmax(0,1fr) minmax(330px,390px);align-items:center;gap:clamp(50px,6vw,96px);}
.ah-hero-copy-main{min-width:0;}
.ah-hero-inner.has-auth-card .ah-hero-copy-main{grid-column:1;grid-row:1;align-self:center;}
.ah-hero-inner.has-auth-card .ah-hero-auth-card{grid-column:2;grid-row:1;align-self:center;justify-self:end;}
.ah-hero-inner.has-auth-card .ah-hero-copy-main{padding-bottom:2px;}
.ah-hero-inner.has-auth-card .ah-hero-copy-main h1{max-width:850px;font-size:clamp(58px,5.7vw,96px);}
.ah-hero-inner.has-auth-card .ah-hero-copy-main .ah-hero-desc{max-width:660px !important;}
.ah-hero-auth-card{position:relative;width:100%;box-sizing:border-box;padding:24px;border:1px solid rgba(255,255,255,.15);border-radius:30px;overflow:hidden;background:linear-gradient(145deg,rgba(17,20,27,.72),rgba(8,11,17,.55));-webkit-backdrop-filter:blur(18px) saturate(135%);backdrop-filter:blur(18px) saturate(135%);box-shadow:0 34px 90px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.10),inset 0 0 0 1px rgba(255,255,255,.018);color:#fff;}
.ah-hero-auth-card::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,0) 28%),radial-gradient(ellipse 70% 40% at 90% 0%,rgba(66,153,255,.12),transparent 74%);}
.ah-auth-intro,.ah-auth-form{position:relative;z-index:1;}
.ah-auth-kicker{display:flex;align-items:center;gap:8px;color:rgba(255,255,255,.60);font-size:11px;font-weight:750;letter-spacing:.02em;text-transform:uppercase;}
.ah-auth-kicker span{width:6px;height:6px;border-radius:50%;background:#30d158;box-shadow:0 0 12px rgba(48,209,88,.42);}
.ah-auth-intro h2{margin:8px 0 0;font-size:32px;line-height:1;letter-spacing:-.045em;font-weight:800;}
.ah-auth-intro p{margin:10px 0 0;max-width:320px;color:rgba(255,255,255,.57);font-size:12.5px;line-height:1.42;letter-spacing:-.01em;}
.ah-auth-form{margin-top:19px;}
.ah-auth-field{display:block;position:relative;}
.ah-auth-label{display:block;margin:0 0 7px 2px;color:rgba(255,255,255,.56);font-size:10.5px;font-weight:700;}
.ah-auth-field input{width:100%;height:50px;box-sizing:border-box;border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:0 15px;outline:none;background:rgba(255,255,255,.075);color:#fff;font:600 14px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;letter-spacing:-.01em;box-shadow:inset 0 1px 0 rgba(255,255,255,.025);transition:border-color .2s ease,background .2s ease,box-shadow .2s ease;}
.ah-auth-field input::placeholder{color:rgba(255,255,255,.28);font-weight:500;}
.ah-auth-field input:focus{border-color:rgba(83,170,255,.68);background:rgba(255,255,255,.095);box-shadow:0 0 0 4px rgba(10,132,255,.12);}
.ah-auth-password-wrap{display:grid;grid-template-rows:0fr;opacity:0;transform:translateY(-5px);transition:grid-template-rows .42s cubic-bezier(.16,1,.3,1),opacity .3s ease,transform .42s cubic-bezier(.16,1,.3,1);}
.ah-auth-password-wrap>*{min-height:0;overflow:hidden;}
.ah-hero-auth-card.is-password .ah-auth-password-wrap{grid-template-rows:1fr;opacity:1;transform:none;margin-top:12px;}
.ah-auth-password-field input{padding-right:48px;}
.ah-auth-eye{position:absolute;right:7px;bottom:6px;width:38px;height:38px;border:0;border-radius:12px;display:grid;place-items:center;background:transparent;color:rgba(255,255,255,.42);cursor:pointer;}
.ah-auth-eye:hover,.ah-auth-eye.is-on{background:rgba(255,255,255,.06);color:rgba(255,255,255,.82);}
.ah-auth-eye svg{width:19px;height:19px;}
.ah-auth-recovery{display:block;width:max-content;margin:8px 2px 0 auto;color:#64b5ff;font-size:11px;font-weight:650;text-decoration:none;}
.ah-auth-recovery:hover{text-decoration:underline;}
.ah-auth-error,.ah-auth-status{display:none;margin-top:10px;padding:9px 11px;border-radius:12px;font-size:11px;line-height:1.35;text-align:left;}
.ah-auth-error.is-visible{display:block;color:#ffc2c0;background:rgba(255,69,58,.11);border:1px solid rgba(255,91,83,.16);}
.ah-auth-status.is-visible{display:block;color:#b9ddff;background:rgba(10,132,255,.10);border:1px solid rgba(74,168,255,.14);}
.ah-auth-submit{width:100%;height:50px;margin-top:13px;border:0;border-radius:16px;background:linear-gradient(180deg,#168cff,#0878e8);color:#fff;font:750 14px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;letter-spacing:-.01em;cursor:pointer;box-shadow:0 14px 32px rgba(10,132,255,.25),inset 0 1px 0 rgba(255,255,255,.22);transition:transform .24s cubic-bezier(.16,1,.3,1),filter .2s ease,opacity .2s ease;}
.ah-auth-submit:hover{transform:translateY(-1px);filter:brightness(1.05);}
.ah-auth-submit:disabled{cursor:default;opacity:.68;transform:none;}
.ah-auth-note{margin:11px 3px 0 !important;color:rgba(255,255,255,.34) !important;font-size:10.5px !important;line-height:1.35 !important;}
@media(max-width:900px){.ah-hero-inner.has-auth-card .ah-hero-layout{grid-template-columns:minmax(0,1fr) minmax(290px,340px);gap:36px;}.ah-hero-inner.has-auth-card .ah-hero-copy-main h1{font-size:clamp(52px,7vw,72px);}.ah-hero-auth-card{padding:20px;border-radius:26px;}}
@media(max-width:767px){.ah-hero{min-height:max(760px,100svh);align-items:flex-start;}.ah-hero-inner.has-auth-card{width:calc(100% - 28px);padding:68px 0 max(30px,calc(env(safe-area-inset-bottom,0px) + 22px));}.ah-hero-inner.has-auth-card .ah-hero-layout{display:flex;flex-direction:column;align-items:stretch;gap:19px;}.ah-hero-inner.has-auth-card .ah-hero-auth-card{order:1;grid-column:auto;grid-row:auto;align-self:stretch;justify-self:stretch;}.ah-hero-inner.has-auth-card .ah-hero-copy-main{order:2;grid-column:auto;grid-row:auto;align-self:auto;padding:0 2px;}.ah-hero-auth-card{padding:16px 17px 15px;border-radius:24px;background:linear-gradient(145deg,rgba(15,18,24,.76),rgba(7,10,15,.62));-webkit-backdrop-filter:blur(13px) saturate(125%);backdrop-filter:blur(13px) saturate(125%);}.ah-auth-kicker{font-size:9.5px;}.ah-auth-intro h2{margin-top:6px;font-size:25px;}.ah-auth-intro p{margin-top:7px;max-width:none;font-size:11px;line-height:1.34;}.ah-auth-form{margin-top:13px;}.ah-auth-label{display:none;}.ah-auth-field input{height:46px;border-radius:14px;font-size:13px;}.ah-auth-submit{height:46px;margin-top:10px;border-radius:14px;font-size:13.5px;}.ah-auth-note{display:none;}.ah-auth-error,.ah-auth-status{margin-top:8px;padding:7px 9px;font-size:10.5px;}.ah-hero-inner.has-auth-card .ah-hero-copy-main h1{max-width:430px;margin-top:8px;font-size:clamp(39px,10.9vw,48px);line-height:.915;}.ah-hero-inner.has-auth-card .ah-hero-kicker{font-size:10.5px;}.ah-hero-inner.has-auth-card .ah-hero-desc{max-width:355px !important;margin-top:13px !important;font-size:14px !important;line-height:1.38 !important;}.ah-hero-inner.has-auth-card .ah-hero-value{max-width:355px;margin-top:8px;font-size:11px;line-height:1.3;}}
@media(max-width:390px){.ah-hero-inner.has-auth-card{padding-top:64px;}.ah-hero-inner.has-auth-card .ah-hero-layout{gap:16px;}.ah-hero-auth-card{padding:14px 15px 13px;border-radius:22px;}.ah-auth-intro p{font-size:10.5px;}.ah-auth-field input,.ah-auth-submit{height:44px;}.ah-hero-inner.has-auth-card .ah-hero-copy-main h1{font-size:39px;}.ah-hero-inner.has-auth-card .ah-hero-desc{font-size:13.5px !important;}}
@media(max-height:720px) and (max-width:767px){.ah-hero{min-height:700px;}.ah-hero-inner.has-auth-card{padding-top:61px;padding-bottom:24px;}.ah-hero-auth-card{padding-top:13px;padding-bottom:12px;}.ah-auth-intro p{display:none;}.ah-auth-form{margin-top:10px;}.ah-hero-inner.has-auth-card .ah-hero-value{display:none;}.ah-hero-inner.has-auth-card .ah-hero-copy-main h1{font-size:37px;}.ah-hero-inner.has-auth-card .ah-hero-desc{margin-top:10px !important;font-size:13px !important;}}
@media(prefers-reduced-motion:no-preference){.ah-hero-auth-card{animation:ahHeroAuthIn .92s cubic-bezier(.16,1,.3,1) both .14s;}}
@keyframes ahHeroAuthIn{from{opacity:0;transform:translate3d(24px,18px,0) scale(.975);}to{opacity:1;transform:none;}}


/* V26 — the hero uses the REAL /login form and REAL /login JavaScript.
   Only the presentation is adapted for the home hero. */
.ah-hero-auth-card #loginForm{position:relative;z-index:1;margin-top:18px;}
.ah-hero-auth-card #loginCredentials{display:block;}
.ah-hero-auth-card #loginForm .mb-3{margin-bottom:12px;}
.ah-hero-auth-card #loginForm .mb-2{margin-bottom:7px;}
.ah-hero-auth-card #loginForm .text-sm.font-semibold{color:rgba(255,255,255,.58);font-size:10.5px;font-weight:700;}
.ah-hero-auth-card #loginForm input[name="login"],.ah-hero-auth-card #loginForm input[name="password"]{width:100%;min-height:50px;box-sizing:border-box;border:1px solid rgba(255,255,255,.12)!important;border-radius:16px!important;padding:0 15px!important;outline:none;background:rgba(255,255,255,.075)!important;color:#fff!important;font:600 14px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;box-shadow:inset 0 1px 0 rgba(255,255,255,.025);transition:border-color .2s ease,background .2s ease,box-shadow .2s ease;}
.ah-hero-auth-card #loginForm input[name="login"]::placeholder,.ah-hero-auth-card #loginForm input[name="password"]::placeholder{color:rgba(255,255,255,.30)!important;font-weight:500;}
.ah-hero-auth-card #loginForm input[name="login"]:focus,.ah-hero-auth-card #loginForm input[name="password"]:focus{border-color:rgba(83,170,255,.68)!important;background:rgba(255,255,255,.095)!important;box-shadow:0 0 0 4px rgba(10,132,255,.12)!important;}
.ah-hero-auth-card #loginSubmitBtn{width:100%;min-height:50px;border:0!important;border-radius:16px!important;background:linear-gradient(180deg,#168cff,#0878e8)!important;color:#fff!important;font:750 14px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;box-shadow:0 14px 32px rgba(10,132,255,.25),inset 0 1px 0 rgba(255,255,255,.22)!important;}
.ah-hero-auth-card #loginSubmitBtn:hover{opacity:1!important;filter:brightness(1.05);transform:translateY(-1px);}
.ah-hero-auth-card #loginLegalText{margin-top:12px!important;color:rgba(255,255,255,.36)!important;font-size:10px!important;line-height:1.45!important;text-align:left!important;}
.ah-hero-auth-card #loginLegalText a{color:#64b5ff!important;}
.ah-hero-auth-card #loginError{margin-bottom:12px!important;border-color:rgba(255,91,83,.18)!important;background:rgba(255,69,58,.11)!important;color:#ffc2c0!important;border-radius:14px!important;font-size:11px!important;}
.ah-hero-auth-card #twoFactorBlock{margin-bottom:12px!important;}
.ah-hero-auth-card #twoFactorBlock>div{border-color:rgba(255,255,255,.10)!important;background:rgba(7,10,15,.52)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05);}
.ah-hero-auth-card #twoFactorBlock .text-slate-900{color:#fff!important;}
.ah-hero-auth-card #twoFactorBlock .text-slate-600,.ah-hero-auth-card #twoFactorBlock .text-slate-500{color:rgba(255,255,255,.58)!important;}
.ah-hero-auth-card #twoFactorMethods button{border-color:rgba(255,255,255,.10)!important;background:rgba(255,255,255,.06)!important;color:#fff!important;}
.ah-hero-auth-card #twoFactorCallYou{border-color:rgba(83,170,255,.22)!important;background:rgba(10,132,255,.10)!important;}
.ah-hero-auth-card .two-factor-otp-input{border-color:rgba(255,255,255,.12)!important;background:rgba(255,255,255,.075)!important;color:#fff!important;}
.ah-hero-auth-card:has(#twoFactorBlock:not(.hidden)){width:min(470px,100%);}
.ah-hero-inner.has-auth-card:has(#twoFactorBlock:not(.hidden)) .ah-hero-layout{grid-template-columns:minmax(0,1fr) minmax(390px,470px);}
@media(max-width:900px){.ah-hero-inner.has-auth-card:has(#twoFactorBlock:not(.hidden)) .ah-hero-layout{grid-template-columns:minmax(0,1fr) minmax(350px,430px);}}
@media(max-width:767px){.ah-hero-auth-card #loginForm{margin-top:13px;}.ah-hero-auth-card #loginForm .text-sm.font-semibold{display:none;}.ah-hero-auth-card #loginForm input[name="login"],.ah-hero-auth-card #loginForm input[name="password"]{min-height:46px;border-radius:14px!important;font-size:13px;}.ah-hero-auth-card #loginSubmitBtn{min-height:46px;border-radius:14px!important;font-size:13.5px;}.ah-hero-auth-card #loginLegalText{display:none;}.ah-hero-auth-card:has(#twoFactorBlock:not(.hidden)){width:100%;}.ah-hero-inner.has-auth-card:has(#twoFactorBlock:not(.hidden)) .ah-hero-layout{display:flex;}.ah-hero-auth-card #twoFactorBlock>div{padding:14px!important;border-radius:18px!important;}.ah-hero-auth-card .two-factor-otp-input{width:40px!important;height:46px!important;border-radius:14px!important;}}
@media(max-width:370px){.ah-hero-auth-card .two-factor-otp-input{width:37px!important;height:44px!important;}.ah-hero-auth-card #twoFactorOtpWrap{gap:4px!important;}}
