body.auth-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    background: #E00512 url("/assets/img/xtra-abstract.jpeg") center / cover no-repeat !important;
    color: #231f20;
    font-family: var(--default-font, "Helvetica Neue", sans-serif);
}

.auth-brand {
    position: relative;
    z-index: 2;
    display: block;
    width: fit-content;
    padding: 1.5rem 0 0 2rem;
    line-height: 0;
}

.auth-brand img {
    display: block;
    width: 15.5rem;
    max-width: calc(100vw - 3rem);
    height: auto;
}

body.auth-page form {
    position: relative;
    z-index: 2;
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.25rem 1.5rem 2rem;
    box-sizing: border-box;
}

.auth-shoprite {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 100%;
    border-top: 10px solid #ffffff;
    background: linear-gradient(to right, #dc0613 0 50%, #ffffff 50% 100%);
}

.auth-shoprite .container {
    line-height: 0;
}

.auth-shoprite img {
    display: block;
    width: 100%;
    height: auto;
}

.auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 36rem;
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 1.75rem 1.75rem 2rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    color: #231f20;
}

.auth-logo {
    display: block;
    width: 11rem;
    height: auto;
    margin: 0 auto 1.25rem;
}

.auth-form h1,
.auth-form h2,
.auth-form h3,
.auth-form h4 {
    color: #E00512;
    font-family: var(--display-font, "Helvetica Neue Condensed", "Helvetica Neue", sans-serif) !important;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.auth-form p,
.auth-form .small,
.auth-form label {
    color: #231f20;
}

body.auth-page .auth-form .form-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: inherit;
    border-radius: 0 !important;
}

body.auth-page .auth-form .form-container h3:before {
    display: none !important;
}

.auth-form .form-control,
.auth-form .form-select {
    background: #ffffff;
    border: 1px solid #d5dbe7;
    color: #12264A;
}

.auth-form .form-control,
.auth-form .form-select,
.auth-form .btn-primary,
.auth-form .btn-outline-primary {
    width: 100%;
}

.auth-form .btn-primary,
.auth-form .btn-outline-primary {
    min-height: 44px;
    border-radius: 999px !important;
    font-weight: 700;
}

.auth-form .btn-primary {
    background: #E00512 !important;
    border-color: #E00512 !important;
    color: #ffffff !important;
}

.auth-form .btn-outline-primary {
    background: #ffffff !important;
    color: #E00512 !important;
    border: 2px solid #E00512 !important;
    box-shadow: none !important;
}

.auth-form .btn-outline-primary:hover {
    background: #fff1f2 !important;
    color: #E00512 !important;
}

.auth-form a,
.auth-form a.link-primary {
    color: #E00512 !important;
    font-weight: 600;
    text-decoration: none;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
    align-items: center;
}

.consent-lead h4 {
    font-size: 1.6rem;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.consent-lead .form-check-label {
    color: #231f20 !important;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.55;
}

@media (max-width: 767.98px) {
    .auth-brand {
        padding: 1rem 0 0 1rem;
    }

    .auth-brand img {
        width: min(12.5rem, 62vw);
    }

    body.auth-page form {
        align-items: flex-start;
        padding: 1rem 1rem 1.5rem;
    }

    .auth-card {
        padding: 1.25rem;
    }
}

body.auth-page form:has(.login-sheet) {
    width: 100%;
}

.auth-card:has(.login-sheet) {
    position: relative;
    width: min(52rem, 100%);
    max-width: 52rem;
    padding: 3.15rem 2.4rem 1.6rem;
}

.login-sheet {
    display: grid;
    grid-template-columns: minmax(11rem, 0.82fr) minmax(16rem, 1.18fr);
    gap: 1.25rem 2.25rem;
    align-items: center;
    font-family: "Helvetica Neue", sans-serif !important;
    color: #231f20;
}

.login-sheet--top {
    align-items: start;
}

body.auth-page .login-sheet .login-help {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 2px solid #E00512;
    border-radius: 50%;
    background: #ffffff;
    color: #E00512 !important;
    font-family: "Helvetica Neue", sans-serif !important;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    padding-top: 1px;
    text-decoration: none !important;
    z-index: 3;
}

body.auth-page .login-sheet .login-help:hover,
body.auth-page .login-sheet .login-help:focus {
    background: #E00512;
    color: #ffffff !important;
}

.login-sheet h1 {
    margin: 0 0 0.85rem;
    color: #E00512 !important;
    font-family: "Helvetica Neue Condensed", "Helvetica Neue", sans-serif !important;
    font-size: clamp(3.1rem, 5.4vw, 4.5rem);
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    line-height: 0.88;
    text-transform: uppercase;
}

.login-sheet h1.login-sheet__heading {
    font-size: clamp(2.5rem, 4.2vw, 3.2rem);
    max-width: 100%;
    overflow-wrap: break-word;
}

.login-sheet__copy p {
    margin: 0;
    max-width: 16rem;
    color: #231f20 !important;
    font-family: "Helvetica Neue", sans-serif !important;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.35;
}

.login-sheet__copy .login-desk {
    margin-top: 0.85rem;
}

.login-sheet__copy .login-alert {
    margin: 0.85rem 0 0;
    padding: 0.75rem 0.9rem;
    border: 1px solid #fecdca;
    border-radius: 0.85rem;
    background: #fef3f2;
    color: #912018;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.45;
}

body.auth-page .login-sheet__form p.text-danger {
    margin: 0;
    font-family: "Helvetica Neue", sans-serif !important;
}

.login-sheet__form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding-top: 0.35rem;
}

.login-fields {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.login-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

body.auth-page.idebt-creative .login-sheet .form-control,
body.auth-page.idebt-creative .login-sheet .form-select,
body.auth-page.idebt-creative .login-sheet .form-floating > .form-control {
    width: 100%;
    background-color: #ffffff !important;
    border: 1px solid #d5dbe7 !important;
    border-radius: 0.9rem !important;
    box-shadow: none !important;
    color: #12264A !important;
    font-family: "Helvetica Neue", sans-serif !important;
    font-size: 1rem;
}

body.auth-page.idebt-creative .login-sheet .form-select {
    min-height: calc(3.5rem + 2px);
    padding: 0.85rem 2.25rem 0.85rem 0.85rem !important;
}

body.auth-page.idebt-creative .login-sheet .form-control:focus,
body.auth-page.idebt-creative .login-sheet .form-select:focus,
body.auth-page.idebt-creative .login-sheet .form-floating > .form-control:focus {
    background-color: #ffffff !important;
    border-color: #E00512 !important;
    box-shadow: 0 0 0 3px rgba(224, 5, 18, 0.15) !important;
    color: #12264A !important;
}

body.auth-page.idebt-creative .login-sheet .form-floating > .form-control::placeholder {
    color: transparent !important;
}

body.auth-page.idebt-creative .login-sheet .form-floating > label,
body.auth-page.idebt-creative .login-sheet .form-floating > .form-control:focus ~ label,
body.auth-page.idebt-creative .login-sheet .form-floating > .form-control:not(:placeholder-shown) ~ label,
body.auth-page.idebt-creative .login-sheet .form-floating > .form-select ~ label {
    color: #64748b !important;
}

body.auth-page .login-sheet input.form-control:-webkit-autofill,
body.auth-page .login-sheet input.form-control:-webkit-autofill:hover,
body.auth-page .login-sheet input.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #12264A !important;
    caret-color: #12264A;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    border: 1px solid #d5dbe7 !important;
}

body.auth-page .login-sheet .form-check .form-check-label,
body.auth-page .login-sheet .consent-detail,
body.auth-page .login-sheet .consent-detail li,
body.auth-page .login-sheet .login-desk {
    color: #231f20 !important;
    font-family: "Helvetica Neue", sans-serif !important;
}

body.auth-page .login-sheet .form-check .form-check-label a,
body.auth-page .login-sheet .login-desk a {
    color: #E00512 !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}

body.auth-page.idebt-creative .login-sheet .login-terms.form-check {
    align-items: flex-start;
}

body.auth-page.idebt-creative .login-sheet .login-terms .form-check-input {
    margin: 0.15rem 0 0;
}

body.auth-page .login-sheet .login-terms .form-check-label {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.45;
}

.consent-choices {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.85rem;
}

.consent-lead p {
    margin: 0 0 0.35rem;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.45;
}

#registerTermsModal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 1.25rem;
}

#registerTermsModal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 0;
    background: #12264A;
}

#registerTermsModal .modal-title {
    margin: 0;
    color: #ffffff !important;
    font-family: "Helvetica Neue Condensed", "Helvetica Neue", sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#registerTermsModal .btn-close {
    margin-left: auto;
}

#registerTermsModal .modal-body {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.6;
}

#registerTermsModal .modal-body h3 {
    margin: 1.15rem 0 0.4rem;
    color: #12264A;
    font-size: 1.05rem;
    font-weight: 700;
}

#registerTermsModal .modal-body h3:first-child {
    margin-top: 0;
}

#registerTermsModal .modal-body p {
    margin: 0 0 0.75rem;
}

body.auth-page.idebt-creative .login-sheet .form-check .form-check-input {
    border: 1.5px solid #231f20;
    background-color: #ffffff;
    --bs-form-check-bg: #ffffff;
}

body.auth-page.idebt-creative .login-sheet .form-check .form-check-input:focus {
    border-color: #E00512;
    box-shadow: 0 0 0 3px rgba(224, 5, 18, 0.25);
}

body.auth-page.idebt-creative .login-sheet .form-check .form-check-input:checked {
    background-color: #ffffff;
    border-color: #E00512;
    --bs-form-check-bg: #ffffff;
    --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23E00512' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23E00512' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.login-desk {
    margin: 0;
}

.login-sheet .help-block a {
    color: #231f20 !important;
    font-family: "Helvetica Neue", sans-serif !important;
    font-size: 0.95rem;
    font-weight: 500 !important;
    text-decoration: underline !important;
}

.login-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

body.auth-page .login-sheet .login-actions .btn,
body.auth-page .login-sheet .login-actions input.btn-primary,
body.auth-page .login-sheet .login-actions a.btn {
    width: auto !important;
    min-width: 8.5rem;
    min-height: 44px;
    padding: 0.55rem 1.35rem !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-family: "Helvetica Neue", sans-serif !important;
    font-size: 0.95rem;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
}

body.auth-page .login-sheet .login-actions .btn-primary,
body.auth-page .login-sheet .login-actions input.btn-primary {
    background: #E00512 !important;
    border: 2px solid #E00512 !important;
    color: #ffffff !important;
}

body.auth-page .login-sheet .login-actions .btn-primary:hover,
body.auth-page .login-sheet .login-actions input.btn-primary:hover {
    background: #c00410 !important;
    border-color: #c00410 !important;
    color: #ffffff !important;
}

body.auth-page .login-sheet .login-actions a.btn-primary,
body.auth-page .login-sheet .login-actions a.btn-outline-primary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 1.35rem 1px !important;
    line-height: 1 !important;
}

body.auth-page .login-sheet .login-actions a.btn-outline-primary {
    background: #ffffff !important;
    border: 2px solid #E00512 !important;
    color: #E00512 !important;
}

body.auth-page .login-sheet .login-actions .btn-outline-primary:hover {
    background: #fff1f2 !important;
    color: #E00512 !important;
}

@media (max-width: 767.98px) {
    .auth-card:has(.login-sheet) {
        padding: 3.15rem 1.1rem 1.25rem;
    }

    .login-sheet {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    body.auth-page .login-sheet .login-help {
        top: 0.7rem;
        right: 0.7rem;
    }

    .login-sheet h1 {
        font-size: 2.7rem;
    }

    .login-sheet__copy p {
        max-width: none;
    }

    .login-actions {
        flex-direction: column;
        align-items: stretch;
    }

    body.auth-page .login-sheet .login-actions .btn,
    body.auth-page .login-sheet .login-actions input.btn-primary,
    body.auth-page .login-sheet .login-actions a.btn {
        width: 100% !important;
    }
}
