body, html {
    height: 100%;
    margin: 0;
}

.auth-img {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    height: 100%;
}

.auth-img-fallback {
    background-image: linear-gradient(145deg, #0f3c79 0%, #1a5eb1 45%, #2d84e9 100%);
    position: relative;
}

.auth-img-fallback::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0) 42%),
        radial-gradient(circle at 78% 72%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0) 40%);
}

.auth-banner-imagem-texto {
    margin: clamp(16px, 2vw, 24px);
    width: min(58%, 420px);
    min-width: 180px;
}

.auth-logo {
    max-width: 65%;
    min-width: 150px;
    margin-bottom: 90px;
}

.auth-container {
    background-color: #f7f7f7;
    position: relative;
    z-index: 2;
    box-shadow: -6px 0 16px rgba(15, 45, 89, 0.02);
    padding: clamp(16px, 2vw, 28px) 0 clamp(72px, 9vh, 92px);
}

.auth-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: -14px;
    width: 18px;
    height: 100%;
    background: linear-gradient(90deg, rgba(247, 247, 247, 0) 0%, rgba(247, 247, 247, 0.16) 55%, rgba(247, 247, 247, 0.4) 100%);
    pointer-events: none;
}

.auth-form {
    margin: 15%;
    text-align: center;
}

.auth-form--login {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(28px, 3.2vw, 42px) clamp(20px, 2.8vw, 34px) clamp(36px, 4vw, 54px);
}

.auth-container.col-12 .auth-form {
    max-width: 520px;
    margin: 5% auto;
}

.auth-container.col-12 .align-bottom {
    width: 100%;
    left: 0;
}

.auth-input {
    border: none;
    border-bottom: 1px solid gray;
    padding: 5px;
    width: 100%;
}

.auth-card {
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    text-align: left;
}

.auth-card--login {
    position: relative;
    overflow: visible;
}

.auth-card__header {
    text-align: left;
    margin-bottom: clamp(18px, 2vw, 22px);
}

.auth-card__body {
    text-align: left;
}

.auth-logo--login {
    max-width: clamp(132px, 11vw, 180px);
    width: 100%;
    min-width: 0;
    margin-bottom: clamp(16px, 2vh, 22px);
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: #0f3c79;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-heading {
    margin: 14px 0 8px;
    color: #162033;
    font-size: clamp(1.65rem, 1.3rem + 0.9vw, 2rem);
    line-height: 1.08;
    font-weight: 700;
}

.auth-subtitle {
    margin: 0;
    color: #61708a;
    font-size: clamp(0.9rem, 0.84rem + 0.2vw, 0.98rem);
    line-height: 1.55;
}

.auth-alert {
    border: none;
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-label {
    display: block;
    margin-bottom: 7px;
    color: #24324b;
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-input-wrap {
    position: relative;
}

.auth-field__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #7a879c;
    font-size: 0.9rem;
    pointer-events: none;
}

.auth-input--modern {
    min-height: clamp(48px, 4vw, 54px);
    border: 1px solid #d8e0ec;
    border-radius: 14px;
    padding: 12px 44px 12px 42px;
    background: #fbfcfe;
    color: #162033;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-input--modern.auth-input--no-icon {
    padding-left: 16px;
}

.auth-input--modern::placeholder {
    color: #93a0b5;
}

.auth-input--modern:focus {
    outline: none;
    border-color: #2d84e9;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(45, 132, 233, 0.12);
}

.auth-password-group {
    position: relative;
}

.auth-input-password {
    padding-right: 48px;
}

.auth-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6c757d;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus {
    color: #2f5da8;
    outline: none;
    background: rgba(45, 132, 233, 0.08);
}

.invalid {
    background: #fff5f5;
    border: 1px solid #dc3545;
}

.auth-error {
    margin-top: 8px;
    color: #c53030;
    font-size: 0.85rem;
}

.check-container {
    user-select: none;
}

.check-container * {
    cursor: pointer;
}

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 20px;
}

.auth-check {
    margin-bottom: 0;
    color: #45556f;
}

.auth-link-wrap {
    text-align: right;
}

.auth-link {
    color: #0f5fcc;
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover,
.auth-link:focus {
    color: #0a4da7;
    text-decoration: none;
}

.auth-submit {
    min-height: clamp(46px, 3.8vw, 50px);
    width: 100%;
    padding: 0 1.4rem;
    margin: 0 auto;
    border: none;
    border-radius: 14px;
    font-size: 0.96rem;
    font-weight: 700;
    box-shadow: 0 14px 32px rgba(15, 60, 121, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-helper-text {
    margin: 16px 0 0;
    color: #7a879c;
    font-size: 0.84rem;
    line-height: 1.5;
    text-align: center;
}

.spacing {
    height: 50px;
}

.align-bottom {
    position: absolute;
    left: 0;
    bottom: 16px;
    width: 100%;
    padding: 0 24px;
}

@media (max-width: 1440px) {
    .auth-form--login {
        max-width: 440px;
        padding: 30px 22px 42px;
    }

    .auth-logo--login {
        max-width: 164px;
    }
}

@media (max-width: 1280px) {
    .auth-form--login {
        max-width: 400px;
        padding: 24px 18px 36px;
    }

    .auth-heading {
        font-size: 1.72rem;
    }

    .auth-subtitle {
        font-size: 0.92rem;
    }
}

@media (max-width: 992px) {
    .auth-img {
        flex: 0 0 54%;
        max-width: 54%;
    }

    .auth-container {
        flex: 0 0 46%;
        max-width: 46%;
        padding-bottom: 80px;
    }

    .auth-form--login {
        max-width: 380px;
        padding: 22px 18px 34px;
    }

    .auth-actions {
        gap: 10px;
    }
}

@media (max-width: 800px) {
    .auth-img {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .auth-container {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .auth-logo {
        margin-top: 0;
    }

    .auth-form--login {
        max-width: 360px;
        padding: 24px 18px 34px;
    }

    .auth-heading {
        font-size: 1.75rem;
    }
}

@media (max-width: 700px) {
    .auth-form--login {
        max-width: 100%;
        padding: 28px 22px 40px;
    }

    .auth-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-link-wrap {
        text-align: left;
    }

}

@media (max-width: 600px) {
    .auth-img {
        display: none;
    }

    .auth-container {
        flex: 0 0 100%;
        max-width: 100%;
        box-shadow: none;
    }

    .auth-container::before {
        display: none;
    }

    .auth-form {
        margin: 8% 5%;
    }

    .auth-form--login {
        margin: 0;
        padding: 26px 20px 36px;
    }

    .auth-logo--login {
        max-width: 152px;
    }

    .auth-input--modern {
        min-height: 50px;
        font-size: 0.95rem;
    }

    .align-bottom {
        position: static;
        padding: 16px 0 0;
    }
}
