@import url(https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap);*,::after,::before{box-sizing:border-box;margin:0;padding:0}:root{--bg-from:#a8d8f0;--bg-mid:#7bbde4;--bg-to:#5ba8d8;--card-bg:#ffffff;--card-bg-2:#f4f8fd;--text-primary:#1a1d2e;--text-secondary:#06070885;--text-muted:#9aa5b4;--blue:#3b82f6;--blue-hover:#2563eb;--blue-light:#eff6ff;--input-bg:#f0f4fa;--input-border:#e2e8f4;--input-border-focus:#3b82f6;--error:#ef4444;--link:#3b82f6;--shadow:0 8px 40px rgba(59, 130, 246, 0.12),0 2px 12px rgba(0, 0, 0, 0.06);--radius-card:24px;--radius-input:14px;--radius-btn:14px;--chat-background-background-step-1:#99d5d7;--chat-background-background-step-2:#80bcff;--chat-background-additional-step-1:#0000;--chat-background-additional-step-2:#0000;--chat-background-additional-step-3:#0000;--chat-background-additional-step-4:#0000;--chat-background-additional-step-5:#0000;--chat-background-additional-step-6:#0000;--chat-background-pattern-step-1:#0000;--chat-background-pattern-step-2:#0000;--chat-background-pattern-step-3:#0000;--chat-background-pattern-step-4:#0000;--chat-background-pattern-step-5:#0000;--chat-background-pattern-step-6:#0000;--chat-background-pattern-step-1:rgba(255, 255, 255, .12);--chat-background-pattern-step-2:rgba(255, 255, 255, .04);--chat-background-pattern-step-3:transparent;--chat-background-pattern-step-4:rgba(255, 255, 255, .08);--chat-background-pattern-step-5:rgba(255, 255, 255, .02);--chat-background-pattern-step-6:transparent;--chat-background-pattern-gradient-step-1:#007aff4d;--chat-background-pattern-gradient-step-2:#007aff4d;--chat-background-pattern-color:#007aff4d;--chat-ground:#7ab7e4;--chat-search-highlight:#0f8ec2;--chat-sticker-blank:#edeef2;--chat-timeline-active:#ffffffb8;--chat-timeline-passive:#ffffff52;--chat-action-outside:#0f8ec2a3;--chat-pattern-icon:#20509d2e}body,html{height:100%;font-family:Roboto,-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI','Helvetica Neue',Arial,sans-serif;-webkit-font-smoothing:antialiased}body{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;position:relative;overflow-x:hidden;background:linear-gradient(145deg,#b8dff2 0,#7cbce4 35%,#5aaad8 65%,#4a9bcc 100%)}.bg-container{position:fixed;inset:0;overflow:hidden;z-index:-1}.layer{position:absolute;inset:0;pointer-events:none}.layer-base{background:linear-gradient(28deg,var(--chat-background-background-step-1) 8.03%,var(--chat-background-background-step-2) 91.51%)}.layer-additional{background:radial-gradient(57% 54% at 94% 14%,var(--chat-background-additional-step-1) 0,var(--chat-background-additional-step-2) 50%,var(--chat-background-additional-step-3) 100%),radial-gradient(140% 51% at 0 80%,var(--chat-background-additional-step-4) 0,var(--chat-background-additional-step-5) 50%,var(--chat-background-additional-step-6) 100%)}.layer-pattern{background:radial-gradient(57.57% 53.61% at 94.4% 14.38%,#72abff 0,#4483d9 50%,#2762b4 100%),radial-gradient(140.37% 51.38% at 0 80.05%,#4d8fff 0,#2b5eaf 50%,#163456 100%),linear-gradient(28deg,#2c67bf 8.03%,#56a2ff 91.51%);mask-image:url("/static/img/pattern_background.svg");mask-repeat:repeat;mask-position:center;mask-size:auto;-webkit-mask-image:url("/static/img/pattern_background.svg");-webkit-mask-repeat:repeat;-webkit-mask-position:center;-webkit-mask-size:auto;opacity:.25}.auth-card{position:relative;z-index:1;background:var(--card-bg);border-radius:var(--radius-card);box-shadow:var(--shadow);width:100%;max-width:500px;min-height:600px;overflow:hidden}.card-inner{max-width:450px;margin:0 auto;padding:90px 65px 50px;display:flex;flex-direction:column;align-items:center;min-height:inherit}.logo{display:flex;align-items:center;gap:10px;margin-bottom:26px}.logo-img{max-width:40px;width:100%}.big-logo-img{max-width:130px;width:100%}.logo-text{font-size:26px;font-weight:700;letter-spacing:-.5px;color:var(--text-primary)}.card-header{width:100%;display:flex;justify-content:space-between;align-items:center;padding:24px 28px 0;position:absolute;top:0;left:0}.icon-btn{width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text-secondary);border-radius:50%;transition:background .15s;background:0 0;border:none}.icon-btn:hover{background:var(--input-bg)}.icon-btn svg{width:22px;height:22px}.back-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:none;background:0 0;cursor:pointer;color:var(--text-primary);border-radius:50%;transition:background .15s}.back-btn:hover{background:var(--input-bg)}.back-btn svg{width:20px;height:20px}.title{font-size:17px;font-weight:700;color:var(--text-primary);text-align:center;line-height:1.3;margin-bottom:8px}.subtitle{font-size:14px;color:var(--text-secondary);text-align:center;line-height:1.5;margin-bottom:16px}.input-wrap{width:100%;position:relative;margin-bottom:8px}.input-field{width:100%;background:var(--input-bg);border:1.5px solid transparent;border-radius:var(--radius-input);padding:14px 16px;font-size:16px;color:var(--text-primary);outline:0;transition:border-color .15s,background .15s;font-family:inherit}.input-field:focus{border-color:var(--input-border-focus);background:#fff}.input-field::placeholder{color:var(--text-muted)}.country-dropdown{position:absolute;top:100%;left:0;width:100%;background:var(--input-bg);z-index:9999;max-height:250px;overflow:auto;display:none}.country-dropdown.open{display:block}.country-dropdown-item{display:flex;justify-content:flex-start;gap:6px;padding:6px;font-weight:500;cursor:pointer;color:var(--text-primary);font-size:14px}.country-dropdown-item.active,.country-dropdown-item:hover{background:var(--blue-light)}.country-dropdown::-webkit-scrollbar{width:2px}.country-dropdown::-webkit-scrollbar-track{background:0 0}.country-dropdown::-webkit-scrollbar-thumb{background:rgba(0,0,0,.25);border-radius:0}.country-dropdown::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.4)}.phone-input-row{display:flex;align-items:center;gap:0;width:100%;background:var(--input-bg);border:1.5px solid transparent;border-radius:var(--radius-input);transition:border-color .15s,background .15s}.phone-input-row:focus-within{border-color:var(--input-border-focus);background:#fff}.phone-prefix{position:relative;display:flex;align-items:center;gap:6px;min-width:115px;white-space:nowrap;font-size:16px;color:var(--text-primary);cursor:pointer;padding:14px 10px;user-select:none}.country-dropdown::before{content:'';position:absolute;bottom:0;left:0;width:15px;height:15px;background:var(--input-bg)}.phone-prefix .flag{font-size:18px;line-height:1}.phone-prefix .code{font-weight:500}.chevron{width:14px;height:14px;color:var(--text-muted)}.phone-number-input{flex:1;outline:0;padding:14px 10px;font-family:inherit;font-size:16px;border:none;border-radius:0 var(--radius-input) var(--radius-input) 0;color:var(--text-primary);background:0 0}.phone-number-input::placeholder{color:var(--text-muted)}.input-hint{font-size:13px;color:var(--text-secondary);line-height:1.45;margin-top:8px;margin-bottom:12px}.btn-primary{width:100%;padding:15px;background:#006ee5;color:#fff;font-size:16px;font-weight:600;border:none;border-radius:var(--radius-btn);cursor:pointer;transition:background .15s,transform .1s;font-family:inherit;letter-spacing:.01em}.btn-primary:hover{background:#479fff}.btn-primary:active{transform:scale(.99)}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.links-row{display:flex;gap:24px;margin-top:auto;padding-top:24px}.text-link{color:var(--link);font-size:14px;font-weight:600;text-decoration:none;cursor:pointer;background:0 0;border:none;font-family:inherit}.text-link:hover{text-decoration:underline}.privacy-text{font-size:13px;color:var(--text-secondary);text-align:center;line-height:1.5;margin-top:16px;margin-bottom:4px}.privacy-text a{color:var(--text-primary);font-weight:600;text-decoration:none}.privacy-text a:hover{text-decoration:underline}.otp-row{display:flex;gap:8px;margin:4px 0 12px 0}.otp-box{width:50px;height:54px;background:var(--input-bg);border:1.5px solid transparent;border-radius:12px;text-align:center;font-size:22px;font-weight:600;color:var(--text-primary);outline:0;transition:border-color .15s;font-family:inherit;caret-color:var(--blue)}.otp-box:focus{border-color:var(--input-border-focus);background:#fff}.otp-box.has-value{background:#fff;border-color:#c8d8f0}.error-msg{color:var(--error);font-size:13px;text-align:center;min-height:18px}.timer-msg{color:var(--text-secondary);font-size:13px;text-align:center;margin-top:8px}.qr-wrap{position:relative;display:inline-block;margin-bottom:24px}.qr-img{width:210px;height:210px;display:block;border-radius:8px}.qr-img.blurred{filter:blur(6px)}.qr-refresh-btn{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:52px;height:52px;background:var(--blue);border:none;border-radius:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#fff;box-shadow:0 4px 16px rgba(59,130,246,.4);transition:background .15s,transform .1s}.qr-refresh-btn:hover{background:var(--blue-hover)}.qr-refresh-btn:active{transform:translate(-50%,-50%) scale(.96)}.qr-refresh-btn svg{width:24px;height:24px}.choice-options{display:flex;flex-direction:column;gap:12px;width:100%;margin-top:8px}.choice-card{display:flex;align-items:center;gap:14px;padding:18px 20px;background:var(--input-bg);border-radius:16px;cursor:pointer;transition:background .15s,transform .1s;text-decoration:none;border:1.5px solid transparent}.choice-card:hover{background:#e8eff9;border-color:#c5d8f0}.choice-card:active{transform:scale(.99)}.choice-icon{width:44px;height:44px;background:var(--blue);border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0}.choice-icon svg{width:22px;height:22px}.choice-title{font-size:15px;font-weight:600;color:var(--text-primary);margin-bottom:2px}.choice-desc{font-size:13px;color:var(--text-secondary)}.choice-arrow{margin-left:auto;color:var(--text-muted)}.choice-arrow svg{width:16px;height:16px}.password-wrap{width:100%;position:relative;margin-bottom:8px}.password-toggle{position:absolute;right:14px;top:50%;transform:translateY(-50%);background:0 0;border:none;cursor:pointer;color:var(--text-muted);padding:4px}.password-toggle svg{width:20px;height:20px}.success-wrap{display:flex;flex-direction:column;align-items:center;text-align:center;padding:24px 0}.success-icon{width:72px;height:72px;background:linear-gradient(135deg,#34d399,#10b981);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:20px;color:#fff}.success-icon svg{width:36px;height:36px}.spinner{width:22px;height:22px;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.sep{flex:1}.lang-switcher{position:relative}.lang-btn{width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text-secondary);border-radius:50%;transition:background .15s;background:0 0;border:none}.lang-btn:hover{background:var(--input-bg)}.lang-btn svg{width:22px;height:22px}.lang-dropdown{position:absolute;top:calc(100% + 6px);left:0;background:#fff;border-radius:12px;box-shadow:0 4px 20px rgba(0,0,0,.12);min-width:120px;overflow:hidden;display:none;z-index:999}.lang-dropdown.open{display:block}.lang-option{padding:10px 14px;font-size:14px;font-weight:500;cursor:pointer;color:var(--text-primary);display:flex;align-items:center;gap:8px;transition:background .12s}.lang-option:hover{background:var(--input-bg)}.lang-option.active{background:var(--blue-light);color:var(--blue)}@media (max-width:540px){.card-inner{padding:28px 24px 32px}.otp-box{width:44px;height:50px;font-size:20px}}.step-wrap{display:flex;flex-direction:column;align-items:center;width:100%}.step-wrap .btn-primary{margin-top:12px}.step-wrap{display:flex;flex-direction:column;align-items:center;width:100%}.qr-canvas-host{display:flex;align-items:center;justify-content:center;overflow:hidden}.qr-canvas-host>svg{display:block}.qr-skeleton{width:210px;height:210px;border-radius:10px;background:linear-gradient(90deg,#f3f4f6 25%,#e9eaec 50%,#f3f4f6 75%);background-size:200% 100%;animation:qr-shimmer 1.4s ease-in-out infinite}@keyframes qr-shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}