:root{--brand:#a60034;--brand-dark:#820028;--ink:#24212a;--muted:#51464e;--line:#e7e3e8;--surface:#fff;--page:#f8f6f8;--error:#b42318;--success:#167647;--radius:18px;--shadow:0 22px 70px rgba(50,16,32,.09)}
*{box-sizing:border-box}html{min-height:100%;background:var(--page)}body{margin:0;min-height:100vh;color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:radial-gradient(circle at 12% 12%,rgba(166,0,52,.055),transparent 28%),radial-gradient(circle at 90% 85%,rgba(166,0,52,.045),transparent 25%),var(--page);-webkit-font-smoothing:antialiased}.auth-shell{width:min(100% - 32px,520px);margin:0 auto;padding:30px 0 22px;min-height:100vh;display:flex;flex-direction:column;justify-content:center}.back-home{display:inline-flex;align-items:center;gap:9px;align-self:flex-start;margin:0 0 18px;color:#514b55;text-decoration:none;font-size:14px;font-weight:650;padding:9px 0;transition:color .18s}.back-home:hover{color:var(--brand)}.auth-card{background:var(--surface);border:1px solid rgba(231,227,232,.9);border-radius:var(--radius);padding:34px 38px 30px;box-shadow:var(--shadow)}.brand{display:inline-flex;align-items:center;gap:10px;margin-bottom:25px;color:var(--ink);font-size:19px;font-weight:800;letter-spacing:.035em;text-decoration:none}.brand-mark{display:grid;place-items:center;width:35px;height:35px;border-radius:11px;background:var(--brand);color:#fff;font-size:20px;font-weight:800;box-shadow:0 5px 14px rgba(166,0,52,.2)}h1{font-size:clamp(27px,5vw,33px);letter-spacing:-.045em;line-height:1.15;margin:0 0 9px;font-weight:780}.subtitle{font-size:16px;line-height:1.6;color:var(--muted);margin:0 0 26px}.field{margin:0 0 18px}.field label{display:block;font-size:13px;font-weight:720;margin:0 0 8px;color:#39343d}.field>input,.password-wrap>input{display:block;width:100%;min-width:0;height:49px;border:1px solid #ded9e0;border-radius:10px;padding:0 14px;background:#fff;color:var(--ink);font:inherit;font-size:14px;outline:none;transition:border-color .18s,box-shadow .18s}.field input::placeholder{color:#a09aa4}.field>input:focus,.password-wrap>input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(166,0,52,.09)}.password-wrap{display:flex;align-items:center;gap:5px;padding:0 5px 0 0;border:1px solid #ded9e0;border-radius:10px;background:#fff;transition:border-color .18s,box-shadow .18s}.password-wrap:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px rgba(166,0,52,.09)}.password-wrap>input{flex:1;border:0;box-shadow:none!important;height:47px;padding-right:5px}.icon-button{width:34px;height:36px;flex:0 0 34px;display:grid;place-items:center;padding:0;border:0;border-radius:8px;background:transparent;color:#746d78;cursor:pointer;transition:background .18s,color .18s}.icon-button:hover,.icon-button.is-active{background:#fff0f4;color:var(--brand)}.icon-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.password-hint{margin-top:9px;padding:12px 14px;border:1px solid #f0d7e0;border-radius:10px;background:#fff8fa;color:#5b3341;font-size:12.5px;line-height:1.55}.password-hint ul{padding-left:19px;margin:6px 0 0}.password-hint li{margin:2px 0}.check-row{display:flex;align-items:flex-start;gap:10px;margin:3px 0 22px;color:#51464e;font-size:16px;line-height:1.6}.check-row input{width:16px;height:16px;flex:0 0 16px;margin:2px 0 0;accent-color:var(--brand)}a{color:var(--brand);text-underline-offset:3px}.check-row a,.auth-switch a{font-weight:700}.primary-button{width:100%;min-height:49px;display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid var(--brand);border-radius:10px;background:var(--brand);color:#fff;text-decoration:none;font:inherit;font-size:15px;font-weight:750;cursor:pointer;transition:background .18s,border-color .18s,transform .18s,box-shadow .18s}.primary-button:hover{background:var(--brand-dark);border-color:var(--brand-dark);box-shadow:0 7px 18px rgba(166,0,52,.17);transform:translateY(-1px)}.primary-button:focus-visible,.icon-button:focus-visible,.back-home:focus-visible{outline:3px solid rgba(166,0,52,.25);outline-offset:3px}.button-link{margin-top:22px}.auth-switch{margin:22px 0 0;text-align:center;color:var(--muted);font-size:16px}.auth-switch a{margin-left:3px;text-decoration:none}.auth-switch a:hover{text-decoration:underline}.alert{border-radius:10px;padding:12px 14px;margin:0 0 20px;font-size:13px;line-height:1.5}.alert-error{border:1px solid #f2c9c6;background:#fff5f4;color:var(--error)}.alert-success{border:1px solid #b9e5cd;background:#f2fcf6;color:var(--success)}.success-symbol{display:grid;place-items:center;width:58px;height:58px;margin:2px 0 22px;border-radius:50%;background:#eaf8ef;color:#198754;font-size:30px;font-weight:800}.redirect-note{color:var(--muted);font-size:16px;margin:20px 0 0}.dots{display:inline-block;overflow:hidden;vertical-align:bottom;width:17px;animation:ellipsis 1.1s steps(4,end) infinite}@keyframes ellipsis{0%{width:0}100%{width:17px}}.field-error{margin:7px 0 0;color:var(--error);font-size:16px}.page-foot{text-align:center;color:#99929d;font-size:11px;margin:18px 0 0}@media(max-width:520px){.auth-shell{width:min(100% - 24px,440px);padding:18px 0}.back-home{margin-bottom:12px}.auth-card{padding:27px 22px 24px;border-radius:15px}.brand{margin-bottom:23px}h1{font-size:28px}.subtitle{font-size:14px;margin-bottom:23px}.field{margin-bottom:16px}.check-row{font-size:12px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}

.brand-header{display:flex;align-items:center;justify-content:flex-start;gap:11px;width:100%;margin:0 0 24px;font-size:22px;letter-spacing:-.025em}.brand-header img{display:block;width:clamp(42px,10vw,56px);height:auto;max-height:58px;object-fit:contain;flex:0 0 auto}.brand-header span{font-size:clamp(21px,4vw,25px);font-weight:850;color:var(--brand);letter-spacing:-.04em}.page-foot{line-height:1.6}@media(max-width:520px){.brand-header{margin-bottom:21px;gap:9px}.brand-header img{width:42px;max-height:45px}.brand-header span{font-size:22px}}
