:root {
    --auth-primary: #1769aa;
    --auth-primary-dark: #105486;
    --auth-ink: #172334;
    --auth-muted: #5d6978;
    --auth-border: #dbe3eb;
    --auth-page: #f3f6f9;
    --auth-surface: #ffffff;
    --auth-error: #9f2d2d;
    --auth-error-bg: #fff1f1;
    --auth-success: #185e88;
    --auth-success-bg: #edf7fd;
}

* { box-sizing: border-box; }

body.customer-auth-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(23, 105, 170, .12), transparent 36rem),
        var(--auth-page);
    color: var(--auth-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.customer-auth-header,
.customer-auth-footer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.customer-auth-header {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.customer-auth-brand,
.customer-auth-store-link,
.customer-auth-secondary a,
.customer-auth-actions a {
    color: var(--auth-primary);
    font-weight: 800;
}

.customer-auth-brand { font-size: 1.15rem; text-decoration: none; }

.customer-auth-main {
    display: grid;
    place-items: start center;
    padding: 36px 16px 64px;
}

.customer-auth-card {
    width: min(100%, 560px);
    padding: clamp(24px, 5vw, 42px);
    border: 1px solid var(--auth-border);
    border-radius: 22px;
    background: var(--auth-surface);
    box-shadow: 0 24px 70px rgba(23, 35, 52, .09);
}

.customer-auth-card h1 {
    margin: 4px 0 10px;
    font-size: clamp(1.8rem, 5vw, 2.45rem);
    line-height: 1.08;
}

.customer-auth-eyebrow {
    margin: 0;
    color: var(--auth-primary);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.customer-auth-description,
.customer-auth-secondary,
.customer-auth-token-note {
    color: var(--auth-muted);
    line-height: 1.6;
}

.customer-auth-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.customer-auth-form label {
    display: grid;
    gap: 7px;
    font-weight: 750;
}

.customer-auth-form label > span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.customer-auth-form small {
    color: var(--auth-muted);
    font-size: .78rem;
    font-weight: 500;
}

.customer-auth-form input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #c8d3dd;
    border-radius: 10px;
    padding: 11px 13px;
    color: var(--auth-ink);
    font: inherit;
}

.customer-auth-form input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(23, 105, 170, .14);
    outline: none;
}

.customer-auth-form button,
.customer-auth-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    background: var(--auth-primary);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
}

.customer-auth-form button:hover,
.customer-auth-button:hover { background: var(--auth-primary-dark); }

.customer-auth-form button:disabled { cursor: not-allowed; opacity: .48; }

.customer-auth-alert {
    margin: 20px 0;
    border: 1px solid;
    border-radius: 10px;
    padding: 12px 14px;
    line-height: 1.5;
}

.customer-auth-alert--error {
    border-color: #efbcbc;
    background: var(--auth-error-bg);
    color: var(--auth-error);
}

.customer-auth-alert--success {
    border-color: #b8dced;
    background: var(--auth-success-bg);
    color: var(--auth-success);
}

.customer-auth-token-note {
    margin: 0;
    border: 1px dashed var(--auth-border);
    border-radius: 10px;
    padding: 13px;
}

.customer-auth-secondary { margin: 22px 0 0; text-align: center; }
.customer-auth-actions { display: grid; gap: 14px; }
.customer-auth-footer { padding: 0 0 34px; color: var(--auth-muted); text-align: center; }

@media (max-width: 560px) {
    .customer-auth-header { min-height: 66px; }
    .customer-auth-main { padding-top: 14px; }
    .customer-auth-card { border-radius: 16px; }
}
