.auth-carsyo,
.auth-recovery,
.auth-register,
.auth-publica-carsyo {
    min-height: calc(100vh - 82px);
    padding: clamp(1rem, 2vw, 2rem) 0 clamp(2.5rem, 5vw, 5rem);
    background:
        radial-gradient(circle at 8% 0%, rgba(251, 186, 38, .16), transparent 24%),
        radial-gradient(circle at 92% 4%, rgba(28, 126, 147, .13), transparent 30%),
        linear-gradient(180deg, #f4f9fa 0%, #fff 58%);
}

.auth-carsyo > .container,
.auth-recovery > .container,
.auth-register > .container,
.auth-publica-carsyo > .container,
.auth-publica-carsyo__container {
    width: 100%;
    max-width: none;
    padding-inline: clamp(.75rem, .9vw, 1.25rem);
}

.auth-carsyo-card,
.auth-recovery-card,
.auth-register-shell,
.auth-publica-carsyo__shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(14, 78, 96, .12) !important;
    border-radius: clamp(24px, 2.2vw, 34px) !important;
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: 0 30px 85px rgba(12, 55, 68, .12) !important;
}

.auth-carsyo-card::before,
.auth-recovery-card::before,
.auth-register-shell::before,
.auth-publica-carsyo__shell::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #fbba26, #1d7a8f, #0e4e60);
}

.auth-carsyo-copy,
.auth-recovery-card > .row > div:first-child,
.auth-register-head,
.auth-publica-carsyo__apresentacao {
    position: relative;
    isolation: isolate;
}

.auth-carsyo-copy::after,
.auth-register-head::after,
.auth-publica-carsyo__apresentacao::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 260px;
    height: 260px;
    right: -100px;
    bottom: -150px;
    border-radius: 50%;
    background: rgba(251, 186, 38, .10);
}

.auth-carsyo-form,
.auth-recovery-form,
.auth-register-form,
.auth-publica-carsyo__formulario {
    width: 100%;
    max-width: 780px;
    margin-left: auto;
    border: 1px solid #dce7ea !important;
    border-radius: 24px !important;
    background: linear-gradient(180deg, #fff, #fbfdfd) !important;
    box-shadow: 0 18px 48px rgba(12, 55, 68, .08) !important;
}

.auth-register-form {
    max-width: none;
}

.auth-carsyo-form .form-control,
.auth-recovery-form .form-control,
.auth-register-form .form-control,
.auth-register-form .form-select,
.auth-publica-carsyo .form-control,
.auth-publica-carsyo .form-select {
    min-height: 50px;
    border-color: #cfdee3;
    border-radius: 14px;
    background-color: #fff;
}

.auth-carsyo-form .form-control:focus,
.auth-recovery-form .form-control:focus,
.auth-register-form .form-control:focus,
.auth-register-form .form-select:focus,
.auth-publica-carsyo .form-control:focus,
.auth-publica-carsyo .form-select:focus {
    border-color: #1d7a8f;
    box-shadow: 0 0 0 .22rem rgba(29, 122, 143, .14);
}

.auth-publica-carsyo__grade {
    display: grid;
    grid-template-columns: minmax(300px, .8fr) minmax(420px, 1.2fr);
    align-items: stretch;
    gap: clamp(1rem, 2vw, 2rem);
    padding: clamp(1rem, 2.5vw, 2.4rem);
}

.auth-publica-carsyo__apresentacao {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1rem, 3vw, 3rem);
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(140deg, #0e4e60, #1d7a8f);
}

.auth-publica-carsyo__icone {
    width: 74px;
    height: 74px;
    object-fit: contain;
    border-radius: 22px;
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .18));
}

.auth-publica-carsyo__formulario {
    align-self: center;
    padding: clamp(1.4rem, 3vw, 3rem);
}

@media (min-width: 1400px) {
    .auth-carsyo-card > .row,
    .auth-recovery-card > .row {
        max-width: 1500px;
        margin-inline: auto;
    }

    .auth-register-shell {
        display: grid;
        grid-template-columns: minmax(320px, .34fr) minmax(720px, 1fr);
        align-items: start;
        gap: 1.25rem;
    }

    .auth-register-head {
        position: sticky;
        top: 96px;
        margin-bottom: 0 !important;
    }
}

@media (max-width: 991.98px) {
    .auth-publica-carsyo__grade {
        grid-template-columns: 1fr;
    }

    .auth-publica-carsyo__apresentacao {
        min-height: 230px;
    }
}

@media (max-width: 575.98px) {
    .auth-carsyo,
    .auth-recovery,
    .auth-register,
    .auth-publica-carsyo {
        padding-top: .65rem;
    }

    .auth-carsyo-card,
    .auth-recovery-card,
    .auth-register-shell,
    .auth-publica-carsyo__shell {
        border-radius: 20px !important;
    }

    .auth-publica-carsyo__grade {
        padding: .7rem;
    }

    .auth-publica-carsyo__apresentacao {
        min-height: 190px;
        border-radius: 17px;
    }
}
