.customer-account-page {
    padding-block: clamp(1rem, 4vw, 2.5rem);
}

.customer-account-form {
    --account-text: var(--cw-store-title, #172244);
    --account-muted: var(--cw-store-muted, #505875);
    --account-border: var(--cw-store-border, #e0e5ee);
    --account-field: var(--cw-store-bg, #f5f7fc);
    --account-focus: var(--cw-store-accent, #00b894);
    --account-link: var(--cw-store-accent-soft, #0d3bd1);
    width: min(100%, 26rem);
    margin-inline: auto;
    border-radius: .875rem;
    color: var(--account-text);
}

[data-theme="dark"] .customer-account-form {
    --account-text: var(--cw-store-title, #f3f5ff);
    --account-muted: var(--cw-store-muted, #b5bdd6);
    --account-border: var(--cw-store-border, #354365);
    --account-field: var(--cw-store-bg, #101936);
    --account-link: var(--cw-store-accent-soft, #b5c8ff);
}

.customer-account-form .card-body {
    padding: clamp(.875rem, 3.5vw, 1.5rem) clamp(.75rem, 3vw, 1.5rem);
}

.customer-account-heading {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-block-end: .75rem;
}

.customer-account-heading img {
    flex: none;
    object-fit: contain;
}

[data-theme="dark"] .customer-account-heading img,
[data-store-theme="black-friday"] .customer-account-heading img {
    filter: brightness(0) invert(1);
}

.customer-account-form .customer-account-heading h1,
.customer-account-form label.title {
    color: var(--account-text);
}

.customer-account-form p:not(.text-danger) {
    color: var(--account-muted);
}

.customer-account-form input.form-control {
    width: 100%;
    color-scheme: light;
    min-height: 2.875rem;
    border: 1px solid var(--account-border);
    border-radius: .5rem;
    background-color: var(--account-field);
    color: var(--account-text);
    font-size: 1rem;
}

[data-theme="dark"] .customer-account-form input.form-control,
[data-store-theme="black-friday"] .customer-account-form input.form-control {
    color-scheme: dark;
}

.customer-account-form input.form-control::placeholder {
    color: var(--account-muted);
}

.customer-account-form input.form-control:focus {
    outline: 2px solid var(--account-focus);
    outline-offset: 1px;
}

.customer-account-message {
    white-space: pre-line;
}

.customer-account-password {
    position: relative;
}

.customer-account-password .form-control {
    padding-right: 3rem;
}

.customer-account-password .btn {
    position: absolute;
    inset-block: 0;
    right: 0;
    width: 2.75rem;
    color: var(--account-link);
}

.customer-account-password .btn:focus-visible {
    outline: 2px solid var(--account-focus);
    outline-offset: -3px;
}

.customer-account-form .btn-success {
    min-height: 2.75rem;
    width: 100%;
}

.customer-account-remember {
    display: flex;
    align-items: center;
    gap: .45rem;
    width: fit-content;
    min-height: 2rem;
    cursor: pointer;
    color: var(--account-text);
}

.customer-account-remember input[type="checkbox"] {
    margin: 0;
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--account-focus);
    cursor: pointer;
}

[data-theme="dark"] .customer-account-remember input,
[data-store-theme="black-friday"] .customer-account-remember input {
    color-scheme: dark;
}

.customer-account-alternate {
    margin-block-start: 1rem;
    padding-block-start: .75rem;
    border-block-start: 1px solid var(--account-border);
    text-align: center;
}

.customer-account-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1rem;
}

.customer-account-form #otp-captcha {
    text-align: center;
}

.customer-account-form #otp-captcha:empty,
.customer-account-form #customer-code-expiry:empty {
    display: none;
}

.customer-account-code-actions .btn-link {
    min-height: 2.5rem;
    font-size: .875rem;
    text-decoration: none;
}

.customer-account-form .customer-account-alternate a,
.customer-account-form .customer-account-code-actions .btn-link {
    color: var(--account-link);
}

.customer-account-form .customer-account-code-actions .btn-link:disabled {
    color: var(--account-muted);
    opacity: 1;
}
