/* Authentication dialog only; payment and VIP dialogs keep their theme. */
#m-auth .sheet.narrow {
    width: min(440px, calc(100vw - 24px));
    max-width: 440px;
    max-height: calc(100dvh - 24px);
    padding: 56px 36px 0;
    background: #18181f;
    color: #f5f5f7;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 90px #0005;
    overflow-y: auto;
}
#m-auth .x {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #ffffff0a;
    color: #f5f5f7;
    font-size: 27px;
}
#m-auth .auth-brand, #m-auth .tabs { display: none; }
#m-auth #authTitle {
    margin: 0 0 12px;
    text-align: center;
    color: #f5f5f7;
    font-size: clamp(26px, 6vw, 32px);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -.6px;
}
#m-auth #authSubtitle {
    text-align: center;
    color: #a6a6b2;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 28px;
}
#m-auth #authMethods { display: grid; gap: 12px; padding-bottom: 48px; }
#m-auth #authMethods[hidden] { display: none; }
#m-auth #authMethods .btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin: 0 !important;
    padding: 12px 42px;
    border: 1px solid #ffffff0d;
    border-radius: 999px;
    background: #26262f;
    color: #f5f5f7;
    font-size: 14px;
    font-weight: 650;
    text-align: center;
    letter-spacing: 0;
}
#m-auth #authMethods .btn:hover { background: #33333e; }
#m-auth .auth-method-icon { position: absolute; left: 18px; width: 22px; height: 22px; }
#m-auth .form { padding: 4px 0 24px; }
#m-auth .form[hidden] { display: none; }
#m-auth .form label { color: #b8b8c3; font-size: 13px; }
#m-auth .form input {
    min-height: 48px;
    padding: 12px 14px;
    background: #111116;
    color: #f5f5f7;
    border: 1px solid #ffffff1c;
    border-radius: 9px;
    font-size: 16px;
}
#m-auth .form input:focus { border-color: #fe2c55; outline: 2px solid #fe2c5520; }
#m-auth .form .btn { min-height: 48px; border-radius: 9px; background: #fe2c55; color: white; }
#m-auth [data-auth-back] { background: transparent; color: #aaaab8; border: 0; font-size: 12px; min-height: 44px; }
#m-auth [data-auth-back][hidden] { display: none; }
#m-auth .auth-legal { margin: 0; padding: 0 4px 20px; color: #9292a1; text-align: center; font-size: 11px; line-height: 1.6; }
#m-auth .auth-legal a { color: #b8b8c3; }
#m-auth .auth-footer { margin: 0 -36px; padding: 19px 20px; border-top: 1px solid #ffffff12; text-align: center; color: #d7d7df; font-size: 14px; }
#m-auth .auth-footer button { padding: 6px; border: 0; background: transparent; color: #fe2c55; font: inherit; font-weight: 700; cursor: pointer; }
#m-auth button:focus-visible, #m-auth a:focus-visible { outline: 2px solid #fe2c55; outline-offset: 3px; }
@media (max-width: 480px) {
    #m-auth .sheet.narrow { padding: 54px 24px 0; border-radius: 16px; }
    #m-auth .auth-footer { margin-inline: -24px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
    #m-auth #authMethods { padding-bottom: 38px; }
}
