:root{font-family:Manrope,"Segoe UI",sans-serif;color:#263044;background:#fff;font-synthesis:none;--ink:#263044;--muted:#778091;--line:#dfe3e9;--focus:#278ee8;--danger:#dd4c58;--button:#4d5670}
*{box-sizing:border-box}
html{min-width:320px}
body{margin:0;min-height:100vh}
button,input,select{font:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
.page-shell{min-height:100vh;display:flex;flex-direction:column;align-items:center;padding:37px 20px 20px;background:radial-gradient(ellipse 350px 160px at 50% -70px,rgba(0,179,242,.055),transparent 85%),#fff}
.auth-panel{width:min(100%,470px);margin:auto 0;animation:rise .5s ease-out both}
.brand-block{text-align:center;margin-bottom:38px}
.brand-symbol{display:block;width:108px;height:88px;margin:0 auto 3px}
.brand-name{color:#676a72;font-weight:800;font-size:20px;line-height:1.2;letter-spacing:.16em;padding-left:.16em}
.intro{text-align:center;margin-bottom:26px}
.eyebrow{margin:0 0 9px;color:#9aa3b1;font-size:11px;font-weight:800;letter-spacing:.16em}
h1{margin:0;color:#202b41;font-size:29px;font-weight:800;line-height:1.25;letter-spacing:-.035em}
.intro-copy{margin:8px 0 0;color:var(--muted);font-size:14px;line-height:1.55}
.reveal-button:focus-visible,.offer-link:focus-visible,.submit-button:focus-visible,.dialog-close:focus-visible,.dialog-done:focus-visible,.logout-button:focus-visible{outline:3px solid rgba(39,142,232,.3);outline-offset:2px}
.field{margin-bottom:17px}
.field label{display:block;margin:0 0 7px;color:#323c4e;font-size:14px;font-weight:600}
.required{color:var(--danger);font-weight:800}
.field input,.field select{display:block;width:100%;height:46px;padding:0 13px;border:1px solid var(--line);border-radius:8px;outline:none;background:#fff;color:#2e394b;font-size:15px;transition:border-color .2s,box-shadow .2s}
.field input:hover,.field select:hover{border-color:#bfc8d5}
.field input:focus,.field select:focus{border-color:var(--focus);box-shadow:0 0 0 3px rgba(39,142,232,.12)}
.field.has-error input{border-color:var(--danger)}
.field.has-error input:focus{box-shadow:0 0 0 3px rgba(221,76,88,.1)}
.field-error{margin:0;color:var(--danger);font-size:12px;line-height:1.45}
.field-error:not(:empty){margin-top:6px}
.password-wrap,.select-wrap{position:relative}
.password-wrap input{padding-right:50px}
.reveal-button{position:absolute;right:5px;top:4px;display:grid;place-items:center;width:39px;height:38px;padding:0;border:0;border-radius:7px;background:transparent;color:#4a566d;transition:background .2s,color .2s}
.reveal-button:hover{background:#f1f5f9;color:#126cd0}
.reveal-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.reveal-button .eye-slash{display:none;stroke:#e26369;stroke-width:2}
.reveal-button[aria-pressed=true] .eye-slash{display:block}
.language-field{margin-top:2px;margin-bottom:17px}
.field select{appearance:none;padding-right:42px;cursor:pointer}
.select-chevron{position:absolute;right:14px;top:13px;width:20px;height:20px;fill:none;stroke:#6d7686;stroke-width:2;pointer-events:none}
.agreement-block{margin-top:1px}
.agreement-label{position:relative;display:flex;align-items:flex-start;gap:8px;color:#3d4759;font-size:13px;line-height:1.55;cursor:pointer}
.agreement-label>input{position:absolute;left:0;top:1px;z-index:1;opacity:0;width:18px;height:18px;margin:0;cursor:pointer}
.check-box{flex:none;display:grid;place-items:center;width:18px;height:18px;margin-top:1px;border:1px solid #aeb8c7;border-radius:4px;background:#fff;transition:background .2s,border-color .2s,box-shadow .2s}
.check-box svg{display:none;width:14px;height:14px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.agreement-label>input:checked+.check-box{background:#1c75d1;border-color:#1c75d1}
.agreement-label>input:checked+.check-box svg{display:block}
.agreement-label>input:focus-visible+.check-box{box-shadow:0 0 0 3px rgba(39,142,232,.25)}
.offer-link{display:inline;padding:0;border:0;background:none;color:#0876de;text-decoration:underline;text-underline-offset:2px;font-size:inherit;line-height:inherit;vertical-align:baseline}
.offer-link:hover{color:#0058ae}
.form-message{min-height:19px;margin:17px 0 7px;text-align:center;color:var(--danger);font-size:13px;line-height:1.45}
.form-message.is-success{color:#227c4b}
.submit-button{display:block;min-width:144px;min-height:45px;margin:0 auto;padding:10px 24px;border:1px solid transparent;border-radius:8px;background:var(--button);box-shadow:0 4px 11px rgba(50,58,82,.12);color:#fff;font-size:15px;font-weight:700;transition:transform .2s,background .2s,box-shadow .2s,opacity .2s}
.submit-button:hover:not(:disabled){background:#39435f;box-shadow:0 7px 16px rgba(50,58,82,.19);transform:translateY(-1px)}
.submit-button:active:not(:disabled){transform:translateY(0)}
.submit-button:disabled{opacity:.58;cursor:wait}
.welcome-card{text-align:center;padding:25px 20px 28px;border:1px solid #e2e9ee;border-radius:15px;box-shadow:0 12px 32px rgba(36,57,76,.06)}
.welcome-icon{display:grid;place-items:center;width:49px;height:49px;margin:0 auto 14px;border-radius:50%;background:linear-gradient(135deg,#13bca9,#9add39);color:#fff}
.welcome-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.welcome-card h2{margin:0;color:#23314a;font-size:22px}
.welcome-card p{margin:8px 0 19px;color:var(--muted);font-size:14px}
.logout-button{padding:10px 19px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#41506b;font-weight:700}
.logout-button:hover{background:#f7f9fb}
.page-footer{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin-top:35px;color:#a7afba;font-size:11px;line-height:1.3}
.page-footer #footer-brand{font-weight:800;letter-spacing:.08em}
.footer-separator{width:3px;height:3px;border-radius:50%;background:#bdc4ce}
.offer-dialog{width:min(94vw,520px);max-height:min(82vh,690px);padding:25px 27px 27px;border:1px solid #e4e8ee;border-radius:16px;box-shadow:0 25px 70px rgba(24,36,55,.2);color:var(--ink)}
.offer-dialog::backdrop{background:rgba(30,43,65,.43);backdrop-filter:blur(2px)}
.dialog-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}
.dialog-head .eyebrow{margin-bottom:5px}
.dialog-head h2{margin:0;font-size:22px;letter-spacing:-.025em}
.dialog-close{display:grid;place-items:center;width:33px;height:33px;padding:0;border:0;border-radius:7px;background:#f5f7f9;color:#536176}
.dialog-close:hover{background:#e9eef3}
.dialog-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.dialog-body{padding:15px 0 6px;color:#657184;font-size:14px;line-height:1.7}
.dialog-body h3{margin:16px 0 4px;color:#2e3b52;font-size:14px}
.dialog-body p{margin:0}
.dialog-done{min-height:41px;padding:8px 20px;border:0;border-radius:7px;background:var(--button);color:#fff;font-weight:700}
.dialog-done:hover{background:#39435f}
@keyframes rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:520px){.page-shell{padding:24px 18px 16px}.auth-panel{margin:auto 0}.brand-block{margin-bottom:27px}.brand-symbol{width:92px;height:76px}.brand-name{font-size:18px}.intro{margin-bottom:22px}h1{font-size:26px}.field{margin-bottom:15px}.page-footer{margin-top:28px}.offer-dialog{padding:22px 19px}}
@media(max-width:370px){.agreement-label{font-size:12px}.page-footer{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
