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

body {

    background: #f4f5f7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}
/*
==================================================
BACKGROUND OPCIONAL
==================================================
*/

body.login-background {

    background: linear-gradient(rgba(0,0,0,0.45),rgba(0,0,0,0.45)),var(--login-bg-image, none);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/*
mobile melhora performance
*/
@media (max-width: 768px) {
    body.login-background {
        background-attachment: scroll;
    }
}

/*
==================================================
CONTAINER
==================================================
*/

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 15px;
}

/*
==================================================
CARD
==================================================
*/

.card-login {

    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/*
somente quando possui background
*/
body.login-background .card-login {
    background: rgba(255,255,255,0.96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.30);
}

/*
==================================================
HEADER
==================================================
*/

.header-descricao {
    background: #1a365d;
    color: #ffffff;
    padding: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.95rem;
}

/*
==================================================
FORM
==================================================
*/

.form-container {
    padding: 30px;
}

.form-control {
    height: 48px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding-left: 40px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49,130,206,0.15);
}

.input-group-custom {
    position: relative;
    margin-bottom: 20px;
}

.input-group-custom .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    z-index: 4;
    pointer-events: none;
}

/*
==================================================
BOTÃO
==================================================
*/

.btn-submit {

    height: 48px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    background-color: #3182ce;
    border: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover {
    background-color: #2b6cb0;
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit:disabled {
    background-color: #cbd5e0;
}

/*
==================================================
LINK
==================================================
*/

.esqueceu-senha-link {
    color: #4a5568;
    font-size: 0.87rem;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

.esqueceu-senha-link:hover {
    color: #3182ce;
    text-decoration: underline;
}

/*
==================================================
LOGO
==================================================
*/

.logo-container img {
    max-height: 90px;
    max-width: 100%;
    object-fit: contain;
}

/*
==================================================
MOBILE
==================================================
*/

@media (max-width: 576px) {
    .login-wrapper {
        padding: 10px;
    }
    .form-container {
        padding: 22px;
    }
}