.customer-auth-dialog {
    box-sizing: border-box;
    width: min(490px, calc(100% - 24px));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: clamp(16px, 4vw, 28px);
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    color: var(--text);
    background: linear-gradient(160deg, #f0f6ff, #fff 190px);
    box-shadow: var(--shadow-lg);
}
.customer-auth-dialog::backdrop {
    background: rgb(12 20 33 / 72%);
    backdrop-filter: blur(4px);
}
.customer-auth-dialog[open] { animation: customer-auth-enter .18s ease-out; }
@keyframes customer-auth-enter {
    from { opacity: 0; transform: translateY(8px) scale(.99); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .customer-auth-dialog[open] { animation: none; }
}
.customer-auth-toolbar,
.customer-auth-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}
.customer-auth-toolbar { justify-content: space-between; margin-bottom: 14px; }
.customer-auth-brand { object-fit: contain; object-position: left center; }
.customer-auth-switch {
    background: #e8eff9;
    border: 1px solid #dce7f5;
    border-radius: 13px;
    padding: 4px;
    gap: 4px;
}
.customer-auth-switch button,
.customer-auth-close {
    min-height: 44px;
    padding: 6px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.customer-auth-switch button { flex: 1; font-size: .92rem; font-weight: 650; color: #53647b; }
.customer-auth-switch button[aria-pressed="true"] { background: #fff; color: #164b91; box-shadow: 0 2px 6px rgb(34 61 96 / 12%); }
.customer-auth-close { min-width: 44px; font-size: 1.55rem; background: #fff; color: #415572; }
.customer-auth-close:hover { background: #e5eefb; }
.customer-auth-dialog button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.customer-auth-dialog button:disabled { cursor: wait; opacity: .65; }
.customer-auth-dialog .login-card {
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    max-height: none;
    padding: 22px 2px 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}
.customer-auth-dialog .login-header { text-align: left; margin-bottom: 18px; }
.customer-auth-dialog .login-card h2 { font-size: clamp(1.45rem, 3.5vw, 1.85rem); }
.customer-auth-dialog .login-card .subtitle { margin-top: 5px; font-size: .88rem; }
.customer-auth-dialog .login-form .form-group label { margin-bottom: 6px; font-size: .83rem; font-weight: 600; }
.customer-auth-dialog .login-form .form-group input {
    min-height: 46px;
    border-radius: 11px;
    background: #fff;
    font-size: 1rem;
}
.customer-auth-dialog .login-form .form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgb(38 117 221 / 15%);
}
.customer-auth-dialog .login-form button[type="submit"] {
    min-height: 46px;
    margin-top: 6px;
    border-radius: 11px;
}
.customer-auth-dialog .login-back { margin-top: 14px; }
.customer-auth-status, .customer-auth-fallback { margin: 12px 4px; }
@media (max-width: 420px) {
    .customer-auth-dialog { border-radius: 18px; }
    .customer-auth-dialog .login-form .form-row { grid-template-columns: 1fr; gap: 0; }
    .customer-auth-switch button { padding-inline: 5px; }
}
