.customer-auth,
.customer-account {
    padding-block:
        clamp(44px, 7vw, 96px);
}

.customer-auth {
    min-height: 72vh;
    display: grid;
    align-items: center;
    background:
        radial-gradient(
            circle at 15% 15%,
            var(--accent-soft),
            transparent 31%
        ),
        var(--background);
}

.customer-auth__shell {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(360px, 540px);
    gap: clamp(34px, 7vw, 110px);
    align-items: center;
}

.customer-auth__intro {
    max-width: 680px;
}

.customer-eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.customer-auth__intro h1,
.customer-account__header h1 {
    margin: 0;
    font-size:
        clamp(38px, 6vw, 78px);
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.customer-auth__intro > p,
.customer-account__header p {
    max-width: 680px;
    margin: 20px 0 0;
    color: var(--muted);
    line-height: 1.9;
}

.customer-auth__benefits {
    display: grid;
    gap: 12px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.customer-auth__benefits li {
    position: relative;
    padding-inline-start: 26px;
    color: var(--text);
    font-weight: 700;
}

.customer-auth__benefits li::before {
    position: absolute;
    top: 0.63em;
    inset-inline-start: 0;
    width: 9px;
    height: 9px;
    content: "";
    background: var(--accent);
    border-radius: 50%;
    transform: translateY(-50%);
}

.customer-auth__quote {
    margin-top: 30px;
    padding: 22px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    font-weight: 700;
}

.customer-auth__card,
.customer-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
}

.customer-auth__card {
    padding:
        clamp(24px, 4vw, 44px);
}

.customer-auth__heading {
    margin-bottom: 24px;
}

.customer-auth__heading h2,
.customer-panel h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}

.customer-auth__heading p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.customer-form {
    display: grid;
    gap: 17px;
}

.customer-form--grid {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.customer-field {
    min-width: 0;
}

.customer-field--full {
    grid-column: 1 / -1;
}

.customer-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 800;
}

.customer-field input,
.customer-field textarea,
.customer-field select {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    color: var(--text);
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background-color var(--transition-fast);
}

.customer-field textarea {
    min-height: 110px;
    resize: vertical;
}

.customer-field input:focus,
.customer-field textarea:focus,
.customer-field select:focus {
    border-color: var(--accent);
    box-shadow:
        0 0 0 4px var(--accent-soft);
}

.customer-field input[readonly] {
    color: var(--muted);
    cursor: not-allowed;
}

.customer-field small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.65;
}

.customer-password {
    position: relative;
}

.customer-password input {
    padding-inline-end: 76px;
}

.customer-password__toggle {
    position: absolute;
    top: 50%;
    inset-inline-end: 7px;
    min-width: 58px;
    min-height: 34px;
    padding: 5px 9px;
    color: var(--text);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
    transform: translateY(-50%);
}

.customer-password__toggle:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.customer-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

.customer-check input {
    margin-top: 4px;
}

.customer-check a,
.customer-auth__switch a,
.customer-panel__heading a {
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
}

.customer-submit {
    width: 100%;
    margin-top: 3px;
}

.customer-auth__switch {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.customer-message {
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.7;
}

.customer-message--success {
    color: #067647;
    background: #ecfdf3;
    border-color: #abefc6;
}

.customer-message--error {
    color: #b42318;
    background: #fff1f0;
    border-color: #fecdca;
}

.customer-message--info {
    color: #175cd3;
    background: #eff8ff;
    border-color: #b2ddff;
}

.customer-account__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 26px;
    margin-bottom: 34px;
}

.customer-account__header h1 {
    font-size:
        clamp(34px, 5vw, 68px);
}

.customer-account__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.customer-account__nav a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    color: var(--muted);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 850;
    text-decoration: none;
}

.customer-account__nav a:hover,
.customer-account__nav a.is-active {
    color: #ffffff;
    background: var(--accent);
}

.customer-metrics {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.customer-metric {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 13px;
}

.customer-metric span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.customer-metric strong {
    display: block;
    margin-top: 9px;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.1;
}

.customer-account__grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.customer-profile-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(300px, 0.75fr);
    gap: 18px;
}

.customer-panel {
    min-width: 0;
    padding: clamp(20px, 3vw, 32px);
}

.customer-panel__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.customer-details-list {
    display: grid;
    margin: 0;
}

.customer-details-list > div {
    display: grid;
    grid-template-columns:
        minmax(120px, 0.7fr)
        minmax(0, 1fr);
    gap: 16px;
    padding-block: 12px;
    border-bottom: 1px solid var(--border);
}

.customer-details-list dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.customer-details-list dd {
    margin: 0;
    font-size: 12px;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.customer-address {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    padding: 17px;
    background: var(--surface-strong);
    border-radius: 11px;
    font-style: normal;
    font-size: 12px;
}

.customer-address span {
    color: var(--muted);
}

.customer-empty {
    display: grid;
    justify-items: start;
    gap: 14px;
    padding: 24px;
    color: var(--muted);
    background: var(--surface-strong);
    border-radius: 11px;
}

.customer-empty p {
    margin: 0;
}

.customer-orders {
    display: grid;
}

.customer-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-block: 14px;
    border-bottom: 1px solid var(--border);
}

.customer-order:last-child {
    border-bottom: 0;
}

.customer-order strong,
.customer-order span {
    display: block;
}

.customer-order span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10.5px;
}

.customer-logout-form {
    margin: 0;
}

.customer-logout-button {
    width: 100%;
    padding: 11px 12px;
    color: var(--accent);
    background: transparent;
    border: 0;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    text-align: start;
    cursor: pointer;
}

.customer-logout-button:hover {
    background: var(--accent-soft);
}

.account-menu__identity {
    display: block;
    padding: 8px 12px 10px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    font-size: 10px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .customer-auth__shell,
    .customer-account__grid,
    .customer-profile-grid {
        grid-template-columns: 1fr;
    }

    .customer-metrics {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .customer-auth,
    .customer-account {
        padding-block: 34px 60px;
    }

    .customer-auth__shell {
        gap: 28px;
    }

    .customer-account__header {
        align-items: stretch;
        flex-direction: column;
    }

    .customer-account__header .button {
        width: 100%;
    }

    .customer-account__nav {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .customer-metrics {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .customer-form--grid {
        grid-template-columns: 1fr;
    }

    .customer-field--full {
        grid-column: auto;
    }

    .customer-details-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .customer-panel__heading {
        flex-direction: column;
    }
}

@media (max-width: 430px) {
    .customer-metrics,
    .customer-account__nav {
        grid-template-columns: 1fr;
    }

    .customer-auth__card,
    .customer-panel {
        padding: 19px;
    }
}
