html,
body {
    min-height: 100%;
}

body.login-page {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    color: #102542;
    background-color: #0f1720;
    background-image:
        linear-gradient(rgba(8, 19, 34, 0.34), rgba(8, 19, 34, 0.48)),
        url("../imagens/login-background.511910a27084.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

body.login-page::after {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 30vw;
    min-width: 340px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 0;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 24px;
    position: relative;
    z-index: 1;
}

.login-layout {
    width: 100%;
    display: block;
    min-height: calc(100vh - 64px);
}

.login-brand-panel {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    z-index: 2;
    width: calc(100vw - max(30vw, 340px) - 48px);
    min-height: calc(100vh - 64px);
    padding-left: 28px;
}

.brand-card {
    width: 100%;
    max-width: 410px;
    padding: 5px 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(4px);
    text-align: center;
}

.brand-logo {
    width: min(290px, 100%);
    height: auto;
    display: block;
    margin: 25px auto;
}

.brand-tagline {
    margin-bottom: 30px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #1d3557;
}

.brand-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.brand-highlights li {
    position: relative;
    margin-bottom: 18px;
    padding-left: 18px;
    font-size: 1.08rem;
    line-height: 1.45;
    color: #243b53;
}

.brand-highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 4px;
    height: 1.25rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #27c39f, #1b6fd8);
}

.login-form-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    width: 30vw;
    min-width: 340px;
    height: 100vh;
    padding: 24px;
    z-index: 2;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 360px;
    padding: 32px 26px 28px;
    border-radius: 28px;
    margin: auto;
    background: rgba(0, 0, 0, 0.397);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.login-title {
    margin-bottom: 8px;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
}

.login-subtitle {
    margin-bottom: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.88);
}

.login-form .form-group {
    text-align: left;
    margin-bottom: 18px;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: -2px 0 16px;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    cursor: pointer;
}

.remember-me input {
    width: 16px;
    height: 16px;
    accent-color: #4bc0a7;
}

.login-form label {
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 600;
}

.login-form .form-control {
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
}

.login-form .form-control:focus {
    border-color: #4bc0a7;
    box-shadow: 0 0 0 0.2rem rgba(75, 192, 167, 0.18);
}

.login-submit {
    margin-top: 8px;
    height: 52px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #143d7a 0%, #205ab4 55%, #58d6b0 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.login-submit:hover,
.login-submit:focus {
    color: #ffffff;
    background: linear-gradient(90deg, #123567 0%, #1d4f9f 55%, #46c49f 100%);
}

.alert {
    margin-bottom: 0;
    border: none;
    border-radius: 14px;
}

@media (max-width: 991.98px) {
    html,
    body {
        min-height: 100%;
        height: auto;
    }

    body.login-page::after {
        display: none;
    }

    .login-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
        min-height: auto;
    }

    .login-brand-panel {
        width: 100%;
        min-height: 0;
        justify-content: center;
        padding-left: 0;
    }

    .login-form-panel {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        min-width: 0;
        height: auto;
        padding: 0;
        justify-content: center;
    }

    .login-card {
        margin: 24px;
    }
}

@media (max-width: 575.98px) {
    .login-shell {
        min-height: auto;
        padding: 20px 14px 28px;
        align-items: flex-start;
    }

    .brand-card,
    .login-card {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .login-card {
        margin: 16px;
    }

    .brand-tagline {
        font-size: 1rem;
    }

    .brand-highlights li {
        font-size: 0.98rem;
    }

    .login-title {
        font-size: 1.55rem;
    }
}
