.auth-dialog{width:min(440px,calc(100% - 28px));max-width:none;border:0;border-radius:26px;padding:0;background:#fff;color:var(--ink);box-shadow:0 34px 110px rgba(15,23,42,.28);overflow:hidden}
.auth-dialog::backdrop{background:rgba(10,16,32,.56);backdrop-filter:blur(7px)}
.auth-shell{position:relative;padding:28px 30px 30px}
.auth-brand{display:flex;align-items:center;justify-content:space-between;padding-right:34px;margin-bottom:23px}
.auth-brand img{width:112px;height:auto}
.auth-brand span{font-size:9px;letter-spacing:.13em;color:#98a2b3;font-weight:750}
.auth-close{position:absolute;right:16px;top:14px;width:38px;height:38px;border:0;border-radius:12px;background:#f5f7fa;color:#667085;font-size:24px;line-height:1;cursor:pointer;transition:background .2s,color .2s,transform .2s}
.auth-close:hover{background:#edf1f6;color:#111827;transform:translateY(-1px)}
.auth-heading{margin-bottom:18px}
.auth-heading h2{margin:0;font-size:27px;letter-spacing:-.035em}
.auth-heading p{margin:7px 0 0;color:#98a2b3;font-size:11px;line-height:1.6}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:4px;border-radius:14px;background:#f2f4f7;margin-bottom:18px}
.auth-tabs button{min-height:38px;border:0;border-radius:10px;background:transparent;color:#7b8491;font-size:12px;font-weight:700;cursor:pointer}
.auth-tabs button.is-active{background:#fff;color:#111827;box-shadow:0 6px 18px rgba(17,24,39,.08)}
.auth-form{display:grid;gap:13px}
.auth-field{display:grid;gap:6px}
.auth-field>span{font-size:10px;font-weight:700;color:#475467}
.auth-field input{width:100%;height:46px;border:1px solid #dfe4eb;border-radius:13px;padding:0 14px;background:#fff;color:#111827;font-size:12px;outline:0;transition:border-color .2s,box-shadow .2s}
.auth-field input:focus{border-color:#76a9f8;box-shadow:0 0 0 4px rgba(47,128,255,.10)}
.auth-password-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.auth-text-button{border:0;background:transparent;padding:0;color:#2f72d6;font-size:9px;cursor:pointer}
.auth-submit{width:100%;min-height:46px;border:0;border-radius:13px;background:#111827;color:#fff;font-size:12px;font-weight:750;cursor:pointer;box-shadow:0 12px 26px rgba(17,24,39,.16);transition:transform .2s,box-shadow .2s}
.auth-submit:hover{transform:translateY(-1px);box-shadow:0 16px 32px rgba(17,24,39,.20)}
.auth-terms{display:flex;align-items:flex-start;gap:8px;color:#667085;font-size:9px;line-height:1.55}
.auth-terms input{width:15px;height:15px;margin:0;accent-color:#2f80ff}
.auth-terms a{color:#245fad;text-decoration:underline;text-underline-offset:2px}
.auth-status{margin:14px 0 0;padding:10px 12px;border-radius:11px;background:#f4f6f9;color:#667085;font-size:10px;line-height:1.55}
.auth-status[data-type="success"]{background:#edf8f3;color:#267257}
.auth-status[data-type="error"]{background:#fff1f0;color:#a33b32}
.auth-account{padding:6px 0 0;text-align:center}
.auth-account-badge{width:54px;height:54px;margin:0 auto 14px;border-radius:18px;display:grid;place-items:center;background:var(--stock-soft);overflow:hidden}
.auth-account-badge img{width:38px;height:38px;display:block;object-fit:contain}
.auth-account h3{margin:0;font-size:20px}
.auth-account p{margin:6px 0 20px;color:#667085;font-size:11px}
.auth-account-actions{display:grid;gap:9px}
.auth-account-actions .button{width:100%}
.auth-account-actions button{border:1px solid #e1e6ed;background:#fff;color:#475467;cursor:pointer}
.auth-dialog.is-busy{cursor:progress}
.auth-dialog :disabled{opacity:.62;cursor:not-allowed}
@media (max-width:760px){.auth-field input{font-size:16px}}
@media (max-width:520px){.auth-shell{padding:24px 20px 22px}.auth-brand{margin-bottom:18px}.auth-heading h2{font-size:24px}}
@media (min-width:761px) and (max-width:1099px){.nav-actions .nav-login{display:inline-flex}}
