.auth-intro{margin:8px 6px 24px}.auth-intro h2{font-size:25px;letter-spacing:-.7px;margin:0 0 7px}.auth-intro p{font-size:14px;color:var(--muted);margin:0}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;background:#242424;border-radius:16px;padding:5px;margin-bottom:24px}.auth-tabs button{border:0;background:transparent;color:var(--muted);padding:12px;font:inherit;font-size:14px;font-weight:600;border-radius:12px;min-height:44px;transition:background .15s,color .15s}.auth-tabs button.selected{background:#3b3456;color:#c9bfff}
.phone-card{background:var(--surface);border:1px solid #343434;border-radius:22px;padding:18px 18px 14px}.phone-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px}.phone-caption label{margin:0;font-size:12px;color:var(--muted)}#phone-country-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:55%}
.phone-entry{display:flex;align-items:center;gap:12px;margin-top:12px;border-bottom:1px solid #45404e;padding-bottom:12px;transition:border-color .15s}.phone-entry:focus-within{border-color:var(--accent)}.phone-entry.is-complete{border-color:#9382d6}.phone-flag{display:flex;align-items:center;gap:6px;flex-shrink:0;border:0;background:transparent;color:var(--muted);min-width:52px;min-height:44px;padding:0}.phone-flag img{border-radius:3px;object-fit:cover;box-shadow:0 0 0 1px #ffffff15}.phone-flag svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5}.phone-entry #phone{margin:0;border:0;border-radius:0;background:transparent;padding:0;width:100%;min-width:0;color:#f4f1ff;font-size:clamp(22px,5.7vw,29px);font-weight:500;line-height:44px;letter-spacing:.3px;font-variant-numeric:tabular-nums;outline:0;box-shadow:none;caret-color:#b8a3ff}#phone-help{font-size:12px;color:var(--muted);line-height:1.5;min-height:18px;margin:12px 0 0}
.auth-bottom{margin:22px 0 0;text-align:center}.auth-import{background:transparent;border:0;color:#b5a5ef;font:inherit;font-size:13px;display:inline-flex;align-items:center;gap:8px;padding:12px;min-height:44px}.auth-import .icon{width:18px;height:18px}.auth-bottom p{display:flex;align-items:center;justify-content:center;gap:6px;color:var(--muted);font-size:10px;margin:8px 0}.auth-bottom p .icon{width:13px;height:13px;flex-shrink:0}
.auth-feedback{padding:14px 16px;border:1px solid #b592e842;border-radius:14px;background:#32293b;font-size:13px;line-height:1.6;color:#e3d6f8;overflow-wrap:anywhere}.auth-feedback[hidden]{display:none}
.auth-feedback{scroll-margin-top:90px}.auth-feedback[data-status=loading]{border-color:#8874e133;background:#292536;color:#cbbff2}.auth-feedback[data-status=loading]:before{content:'';display:inline-block;width:11px;height:11px;margin-right:9px;border:2px solid #8874e13b;border-top-color:#c2afff;border-radius:50%;animation:auth-spin .8s linear infinite;vertical-align:-2px}.auth-feedback[data-status=error]{border-color:#ff727b55;background:#38292d;color:#ffd1d5}.phone-flag svg.phone-globe{width:28px;height:28px}.action-bar [aria-busy=true]{opacity:.8}@keyframes auth-spin{to{transform:rotate(360deg)}}
.qr-login{text-align:center;padding:4px 0}.qr-login .qr{margin:0 auto;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;border-radius:22px;width:230px;height:230px;padding:12px}.qr-login .qr svg{width:100%;height:100%}.qr-login .qr-placeholder svg{width:38px;height:38px;color:#b4a3e8}.qr-placeholder span{max-width:160px;font-size:13px;line-height:1.6;color:var(--muted)}#qr-status{min-height:22px;color:var(--muted);font-size:12px;margin:16px 0 12px}.qr-login>.secondary{width:100%;max-width:270px}.qr-steps{counter-reset:steps;list-style:none;margin:28px 4px 0;padding:0;text-align:left;display:grid;gap:14px}.qr-steps li{display:flex;align-items:center;gap:12px;font-size:13px;color:#c0bac9;line-height:1.5}.qr-steps li:before{counter-increment:steps;content:counter(steps);display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#332d42;color:#beadee;font-size:12px;flex-shrink:0}
.country-list{margin-top:16px}.country-option{width:100%;display:flex;align-items:center;gap:14px;min-height:54px;background:transparent;border:0;border-bottom:1px solid #ffffff09;color:var(--text);font:inherit;text-align:left;padding:10px 6px}.country-option[hidden]{display:none}.country-option img{border-radius:3px;object-fit:cover;flex-shrink:0}.country-option span{flex:1;font-size:14px}.country-option small{color:var(--muted);font-size:13px}.country-option .icon{width:17px;height:17px;color:#c3adff}.country-option.selected{color:#d3c4ff}
@media(max-width:360px){.phone-card{padding:15px 13px}.phone-entry{gap:8px}.auth-intro h2{font-size:23px}}
@media(max-height:760px){.auth-intro{display:none}.auth-tabs{margin-bottom:14px}.auth-tabs button{min-height:40px;padding:9px}.phone-card{padding:12px 16px 10px;border-radius:18px}.phone-entry{margin-top:4px;padding-bottom:6px}.phone-entry #phone{line-height:36px;font-size:25px}.phone-flag{min-height:36px}#phone-help{margin-top:8px;font-size:11px}.auth-bottom{margin-top:8px}.auth-bottom p{display:none}}
@media(prefers-reduced-motion:reduce){.phone-entry,.auth-tabs button{transition:none}}

.phone-flag:focus-visible,.auth-tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.auth-recovery{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.auth-recovery[hidden]{display:none}.auth-recovery .secondary{flex:1;min-width:120px}

.phone-flag svg{fill:currentColor;stroke:none}.phone-flag .country-chevron{transform:rotate(90deg)}

.phone-entry #phone{font-size:clamp(18px,4.4vw,23px);letter-spacing:-.4px;font-weight:400}
