:root{--auth-green:#1b7568;--auth-mint:#78c9ae;--auth-ink:#153c37}
.auth-body{overflow-x:hidden;background:#eef6f2}
.auth-layout{grid-template-columns:minmax(420px,1.08fr) minmax(440px,.92fr);background:#eef6f2}
.auth-story{isolation:isolate;min-height:100vh;padding:44px clamp(36px,7vw,108px);background:linear-gradient(140deg,#0b3733 0%,#145b53 48%,#258577 100%)}
.auth-story:before{content:"";position:absolute;inset:0;z-index:-2;background:radial-gradient(circle at 15% 18%,rgba(130,226,194,.2),transparent 27%),radial-gradient(circle at 82% 75%,rgba(255,255,255,.12),transparent 32%)}
.auth-story:after{z-index:-1;width:520px;height:520px;border-width:1px;border-color:rgba(255,255,255,.13);right:-160px;bottom:-180px;box-shadow:0 0 0 70px rgba(255,255,255,.025),0 0 0 140px rgba(255,255,255,.018)}
.auth-ambient{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.auth-ambient i{position:absolute;display:block;border-radius:50%;background:rgba(139,227,198,.16);filter:blur(1px);animation:authFloat 9s ease-in-out infinite}
.auth-ambient i:nth-child(1){width:18px;height:18px;left:12%;top:26%}.auth-ambient i:nth-child(2){width:9px;height:9px;right:20%;top:18%;animation-delay:-3s}.auth-ambient i:nth-child(3){width:26px;height:26px;left:45%;bottom:12%;animation-delay:-6s}
@keyframes authFloat{0%,100%{transform:translateY(0) scale(1);opacity:.45}50%{transform:translateY(-24px) scale(1.12);opacity:1}}
.auth-brand{position:relative;z-index:1}.auth-brand .brand-mark{box-shadow:0 12px 30px rgba(0,0,0,.18)}
.auth-hero-copy{position:relative;z-index:1;max-width:650px;animation:authReveal .8s cubic-bezier(.2,.8,.2,1) both}
.auth-story .auth-hero-copy h1{font-size:clamp(38px,4.8vw,68px);line-height:1.06;letter-spacing:-2.7px;margin:13px 0 24px}
.auth-story .auth-hero-copy h1 em{font-style:normal;color:#9ee2c9;position:relative;white-space:nowrap}
.auth-story .auth-hero-copy h1 em:after{content:"";position:absolute;left:2px;right:0;bottom:-6px;height:7px;border-radius:50%;background:rgba(147,224,198,.3);transform:rotate(-1deg)}
.auth-story .auth-hero-copy>p:not(.eyebrow){font-size:15px;line-height:1.75;color:#cbe4dc;max-width:570px}
.auth-features{display:flex;flex-wrap:wrap;gap:9px;margin-top:30px}.auth-features span{display:flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid rgba(255,255,255,.13);border-radius:999px;background:rgba(255,255,255,.07);backdrop-filter:blur(8px);font-size:10px;color:#d9eee8}.auth-features b{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#88d5b9;color:#154d45}
.auth-trust{position:relative;z-index:1;display:flex;align-items:center;gap:9px}.auth-trust small{color:#c7dfd8!important}.auth-pulse{width:8px;height:8px;border-radius:50%;background:#8de0bf;box-shadow:0 0 0 0 rgba(141,224,191,.65);animation:authPulse 2s infinite}
@keyframes authPulse{70%{box-shadow:0 0 0 9px rgba(141,224,191,0)}100%{box-shadow:0 0 0 0 rgba(141,224,191,0)}}
.auth-form-wrap{position:relative;overflow-y:auto;padding:64px clamp(24px,5vw,78px);background:linear-gradient(150deg,#f8fbf9 0%,#edf6f2 100%)}
.auth-form-wrap:before,.auth-form-wrap:after{content:"";position:absolute;border-radius:50%;pointer-events:none}.auth-form-wrap:before{width:260px;height:260px;right:-100px;top:-90px;background:rgba(99,186,157,.1)}.auth-form-wrap:after{width:180px;height:180px;left:-80px;bottom:-70px;background:rgba(27,117,104,.07)}
.auth-form-label{position:absolute;z-index:2;right:28px;top:23px;color:#67817c;font:600 10px 'DM Sans';letter-spacing:.3px}.auth-form-label span{color:#39a986;margin-right:5px}
.auth-form{position:relative;z-index:1;width:min(470px,100%);padding:38px;border:1px solid rgba(205,224,216,.9);border-radius:26px;background:rgba(255,255,255,.88);box-shadow:0 28px 80px rgba(27,75,66,.13),inset 0 1px 0 #fff;backdrop-filter:blur(18px);animation:authCardIn .55s cubic-bezier(.2,.8,.2,1) both}
.auth-form-wrap.register-mode .auth-form{animation-name:authCardInReverse}
@keyframes authCardIn{from{opacity:0;transform:translateX(34px) scale(.985)}to{opacity:1;transform:none}}
@keyframes authCardInReverse{from{opacity:0;transform:translateX(-34px) scale(.985)}to{opacity:1;transform:none}}
@keyframes authReveal{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
.auth-form .eyebrow{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;background:#eaf6f1;color:var(--auth-green);letter-spacing:1.2px}
.auth-form h2{margin-top:13px;font-size:28px;letter-spacing:-.7px;color:var(--auth-ink)}
.auth-form label{font-size:11px;margin:16px 0;color:#486963}.auth-form input{padding:14px;border-radius:12px;background:#fbfdfc;transition:border-color .2s,box-shadow .2s,transform .2s}.auth-form input:hover{border-color:#b7d3c9}.auth-form input:focus{transform:translateY(-1px);border-color:#54a68b;box-shadow:0 0 0 4px rgba(84,166,139,.12)}
.auth-form>.btn{min-height:46px;border-radius:12px;transition:transform .2s,box-shadow .2s}.auth-form>.btn.primary{margin-top:15px;background:linear-gradient(135deg,#176e62,#29917e);box-shadow:0 12px 25px rgba(29,125,109,.2)}.auth-form>.btn.primary:hover{transform:translateY(-2px);box-shadow:0 16px 30px rgba(29,125,109,.28)}.auth-form>.btn.ghost{background:transparent}
.auth-form .consent{display:grid;grid-template-columns:18px 1fr;align-items:start;gap:10px;line-height:1.65}.auth-form .consent input{width:17px;height:17px;margin:2px 0 0;padding:0;accent-color:var(--auth-green)}.auth-form .consent span{display:block}.auth-form .consent a{color:#176e62;font-weight:700;text-decoration:underline;text-decoration-color:#8fc5b5;text-underline-offset:3px}.auth-form .consent a:hover{color:#0e554c;text-decoration-color:currentColor}
.account-form{max-width:470px}.account-form h2{margin-bottom:8px}.account-form>p:not(.eyebrow){margin:0 0 24px;line-height:1.65}.account-form .account-hint{display:block;margin:8px 0 4px;color:#718783;font-size:10px;line-height:1.5}.account-form>.btn{display:flex;align-items:center;justify-content:center;text-decoration:none;width:100%;margin-top:12px}.account-form>.btn.ghost{min-height:44px;margin-top:10px;border-color:#dce9e4;color:#47716a}.account-form>.btn.ghost:hover{background:#f0f8f4;border-color:#afd0c4}.account-form .login-error{margin:12px 0 0}.account-form .login-error:empty{display:none}
.account-success{display:grid;place-items:center;width:52px;height:52px;margin-bottom:18px;border-radius:16px;background:#e5f5ee;color:#23806e;font-size:24px;font-weight:800}
.login-error:not(:empty){min-height:0;padding:10px 12px;border-radius:9px;background:#fff0ed;border:1px solid #f4d1ca;animation:authShake .32s ease}
@keyframes authShake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
@media(max-width:900px){.auth-layout{grid-template-columns:.9fr 1.1fr}.auth-story{padding:36px}.auth-story .auth-hero-copy h1{font-size:42px}.auth-features{display:grid;align-items:start}}
@media(max-width:760px){.auth-body{background:#eef6f2}.auth-layout{display:block}.auth-story{min-height:285px;padding:26px 24px 32px;justify-content:flex-start;gap:38px}.auth-story .auth-hero-copy h1{font-size:34px;letter-spacing:-1.5px;margin:8px 0 12px}.auth-story .auth-hero-copy>p:not(.eyebrow){font-size:12px}.auth-features,.auth-trust{display:none}.auth-form-wrap{min-height:calc(100vh - 285px);padding:34px 16px}.auth-form-label{display:none}.auth-form{padding:26px 22px;border-radius:21px;margin-top:-58px}.auth-form h2{font-size:24px}}
@media(max-width:760px){
 .auth-body{min-height:100dvh;background:linear-gradient(180deg,#176f62 0 230px,#eff6f3 230px 100%);overscroll-behavior-y:none}
 .auth-layout{min-height:100dvh;display:flex;flex-direction:column;background:transparent}
 .auth-story{min-height:248px;padding:22px 20px 54px;display:block;background:linear-gradient(145deg,#0d4d46,#197567 55%,#2a9180)}
 .auth-story:after{width:250px;height:250px;right:-105px;bottom:-125px;box-shadow:0 0 0 42px rgba(255,255,255,.025),0 0 0 84px rgba(255,255,255,.018)}
 .auth-brand{padding:0}.auth-brand .brand-mark{width:42px;height:42px;border-radius:13px}.auth-brand strong{font-size:18px}.auth-brand small{font-size:8px;max-width:210px;line-height:1.25}
 .auth-hero-copy{margin-top:32px}.auth-hero-copy .eyebrow{font-size:8px;margin:0}.auth-story .auth-hero-copy h1{max-width:330px;margin:8px 0 0;font-size:28px;line-height:1.1;letter-spacing:-1.2px}.auth-story .auth-hero-copy>p:not(.eyebrow),.auth-features,.auth-trust{display:none}
 .auth-form-wrap{flex:1;min-height:0;padding:0 14px 24px;display:block;overflow:visible;background:transparent}
 .auth-form{width:100%;margin:-30px auto 0;padding:25px 20px 22px;border:1px solid rgba(218,231,226,.95);border-radius:25px;background:#fff;box-shadow:0 18px 48px rgba(18,73,64,.16);backdrop-filter:none}
 .auth-form .eyebrow{padding:6px 9px;font-size:8px}.auth-form h2{margin:11px 0 5px;font-size:24px}.auth-form>p:not(.eyebrow){margin:0 0 18px;font-size:11px;line-height:1.5}.auth-form label{margin:13px 0 0;font-size:10px}.auth-form input{min-height:50px;padding:14px 15px;font-size:16px;border-radius:14px;background:#f8fbf9}.auth-form>.btn{min-height:50px;border-radius:14px;font-size:11px}.auth-form>.btn.primary{margin-top:19px}.auth-form>a{font-size:10px!important}.auth-form .consent{margin-top:16px}
 .auth-body .site-footer{padding:10px 12px!important;background:#eff6f3!important}
}
@media(prefers-reduced-motion:reduce){.auth-ambient i,.auth-pulse,.auth-hero-copy,.auth-form{animation:none!important}.auth-form input,.auth-form>.btn{transition:none!important}}
