.customer-auth-document {
    min-height: 100vh;
    color: #28151a;
    font-family: Montserrat, "Segoe UI", Arial, sans-serif;
    background-color: #fff8f1;
    background-image:
        linear-gradient(rgba(255, 252, 248, .16), rgba(255, 248, 241, .14)),
        url("../frontend/images/auth-library-desktop.svg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
 
.auth-container {
    width: min(100%, 1160px);
}

.auth-brand-header {
    flex: 0 0 auto;
    margin-bottom: clamp(.65rem, 2vh, 1.25rem);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(.4rem, 1.5vw, .75rem);
    text-align: left;
}

.auth-logo {
    width: clamp(3rem, 8vh, 5rem);
    height: clamp(3rem, 8vh, 5rem);
    object-fit: contain;
}

.auth-brand-copy {
    display: grid;
}

.auth-brand-copy strong,
.auth-brand-copy > span {
    color: #970021;
    font-weight: 800;
    line-height: 1.02;
}

.auth-brand-copy strong {
    font-size: clamp(1.45rem, 3.5vw, 2.2rem);
}

.auth-brand-copy > span {
    font-size: clamp(.95rem, 2.1vw, 1.35rem);
}

.auth-panel {
    overflow: hidden;
    border: 1px solid rgba(119, 18, 38, .08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 .4rem 1.5rem rgba(84, 34, 26, .14);
}

.auth-panel .card-body {
    padding: clamp(1rem, 2.5vh, 1.5rem);
}

.auth-icon {
    display: grid;
    width: clamp(2.5rem, 6vh, 3.25rem);
    height: clamp(2.5rem, 6vh, 3.25rem);
    margin: 0 auto .45rem;
    place-items: center;
    border-radius: 50%;
    background: #ffe3e1;
    color: #93001f;
    font-size: 1.4rem;
}

.auth-panel h1 {
    color: #92001f;
    font-size: clamp(1.2rem, 2.4vh, 1.5rem);
}

.customer-auth-document .text-secondary {
    color: #555052 !important;
}

.customer-auth-document .btn-outline-secondary {
    border-color: #dfe0e3;
    color: #272124;
}

.customer-auth-document .btn-outline-secondary:hover {
    border-color: #b6b7ba;
    background: #f7f7f7;
    color: #171214;
}

.customer-auth-document .btn-outline-secondary img {
    flex-shrink: 0;
}

.auth-field .input-group-text,
.auth-field .form-control,
.auth-field .btn {
    min-height: 42px;
    border-color: #dfe0e3;
    background-color: #fff;
}

.auth-field .input-group-text {
    color: #271d20;
}

.auth-field .form-control:focus {
    border-color: #ac1232;
    box-shadow: 0 0 0 .18rem rgba(172, 18, 50, .12);
}

.auth-primary {
    min-height: 42px;
    border-color: #a90025;
    border-radius: .75rem;
    background: linear-gradient(100deg, #ae0028, #8f001f);
    color: #fff;
}

.auth-register-submit {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border: 0;
    border-radius: .7rem;
    background: linear-gradient(105deg, #b4002b 0%, #990022 58%, #80001d 100%);
    box-shadow: 0 4px 10px rgba(144, 0, 31, .2);
    color: #fff;
    font-size: 1rem;
    letter-spacing: .01em;
    transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.auth-register-submit:hover {
    background: linear-gradient(105deg, #990022, #71001a);
    box-shadow: 0 6px 14px rgba(144, 0, 31, .27);
    color: #fff;
    transform: translateY(-1px);
}

.auth-register-submit:focus-visible {
    outline: 3px solid rgba(172, 18, 50, .28);
    outline-offset: 3px;
}

.auth-register-submit:disabled {
    box-shadow: none;
    opacity: .78;
}

.auth-primary:hover,
.auth-primary:focus-visible {
    border-color: #78001b;
    background: #78001b;
    color: #fff;
}

.auth-link {
    color: #a10024;
    font-weight: 700;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-home {
    min-height: 36px;
    padding: .35rem 1rem;
    border: 1px solid #c41636;
    border-radius: 2rem;
    color: #9d0023;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.25;
}

.auth-home:hover {
    border-color: #9d0023;
    background: #fff1ed;
    color: #78001b;
}

.auth-switch-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .45rem .65rem;
}

.customer-auth-login {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
}

.customer-auth-login .auth-container {
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: clamp(.5rem, 1.4vh, 1rem);
    padding-bottom: clamp(.5rem, 1.4vh, 1rem);
}

.customer-auth-login .auth-content {
    width: 100%;
}

.customer-auth-login .auth-brand-header {
    margin-bottom: clamp(.5rem, 1.4vh, 1rem);
}

.customer-auth-login .auth-panel {
    width: min(100%, 470px);
    margin-inline: auto;
}

.customer-auth-login .auth-panel .card-body {
    padding: clamp(.85rem, 2.2vh, 1.3rem);
}

.customer-auth-login .auth-panel header {
    margin-bottom: clamp(.45rem, 1.4vh, .85rem) !important;
}

.customer-auth-login .auth-panel .mb-3 {
    margin-bottom: clamp(.45rem, 1.2vh, .75rem) !important;
}

.customer-auth-login .auth-panel .my-3 {
    margin-top: clamp(.5rem, 1.5vh, .85rem) !important;
    margin-bottom: clamp(.5rem, 1.5vh, .85rem) !important;
}

.customer-auth-login .auth-panel .btn-outline-secondary.w-100 {
    min-height: 40px;
}

.customer-auth-login .auth-panel .auth-switch-row {
    margin-top: clamp(.45rem, 1.3vh, .75rem) !important;
}

.customer-auth-register .auth-container,
.customer-auth-account .auth-container {
    padding-top: 1rem;
    padding-bottom: 1.5rem;
}

.customer-auth-register .auth-panel {
    width: min(100%, 560px);
    margin-inline: auto;
}

.customer-auth-register .auth-panel .card-body {
    padding: clamp(1rem, 3vw, 1.6rem);
}

.customer-auth-register .auth-panel .mb-2 {
    margin-bottom: .5rem !important;
}

.customer-auth-register .auth-register-submit {
    margin-top: .15rem;
}

@media (max-width: 767.98px) {
    .customer-auth-document {
        background-image:
            linear-gradient(rgba(255, 252, 248, .12), rgba(255, 248, 241, .1)),
            url("../frontend/images/auth-library-mobile.svg");
    }

    .auth-container {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .customer-auth-login .auth-panel {
        width: min(100%, 440px);
    }

    .customer-auth-login .auth-brand-copy strong {
        font-size: clamp(1.35rem, 7vw, 2rem);
    }

    .customer-auth-login .auth-brand-copy > span {
        font-size: clamp(.9rem, 3.8vw, 1.15rem);
    }
}

@media (min-width: 992px) and (max-width: 1599.98px) and (max-height: 900px) {
    .customer-auth-login .auth-brand-header {
        margin-bottom: .35rem;
    }

    .customer-auth-login .auth-logo {
        width: 3.5rem;
        height: 3.5rem;
    }

    .customer-auth-login .auth-brand-copy strong {
        font-size: 1.8rem;
    }

    .customer-auth-login .auth-brand-copy > span {
        font-size: 1.05rem;
    }

    .customer-auth-login .auth-panel {
        width: min(100%, 420px);
    }

    .customer-auth-login .auth-panel .card-body {
        padding: .8rem 1rem;
    }

    .customer-auth-login .auth-icon {
        width: 2.5rem;
        height: 2.5rem;
        margin-bottom: .25rem;
        font-size: 1.2rem;
    }

    .customer-auth-login .auth-panel header {
        margin-bottom: .4rem !important;
    }

    .customer-auth-login .auth-field .input-group-text,
    .customer-auth-login .auth-field .form-control,
    .customer-auth-login .auth-field .btn {
        min-height: 38px;
    }

    .customer-auth-login .auth-panel .my-3 {
        margin-top: .4rem !important;
        margin-bottom: .4rem !important;
    }

    .customer-auth-login .auth-panel .btn-outline-secondary.w-100 {
        min-height: 36px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .customer-auth-document {
        background-position: left center;
    }
}

@media (max-height: 700px) {
    .customer-auth-login .auth-brand-header {
        margin-bottom: .3rem;
    }

    .customer-auth-login .auth-logo {
        width: 2.7rem;
        height: 2.7rem;
    }

    .customer-auth-login .auth-panel .card-body {
        padding: .65rem .9rem;
    }

    .customer-auth-login .auth-icon {
        width: 2.25rem;
        height: 2.25rem;
        margin-bottom: .2rem;
        font-size: 1.15rem;
    }

    .customer-auth-login .auth-panel .my-3 {
        margin-top: .35rem !important;
        margin-bottom: .35rem !important;
    }

    .customer-auth-login .auth-panel .auth-switch-row {
        margin-top: .3rem !important;
    }
}
