:root {
    --primary: #1f3a5f;
    --text: #1a1a1a;
    --muted: #6b7280;
}

/* BASE */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #eef1f5;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CONTAINER */
.container-login {
    width: 1100px;
    max-width: 95%;
    height: 620px;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 30px 70px rgba(0,0,0,0.15);
}

/* =======================
   FORMULÁRIO
======================= */
.login-form {
    width: 45%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

/* LOGO ACIMA DO TEXTO */
.logo-form {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

    .logo-form img {
        width: 200px;
        opacity: 0.9;
    }

/* TEXTO */
.subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 35px;
}

label {
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
}

input.form-control {
    width: 100%;
    padding: 14px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    background-color: #eef4ff;
}

    input.form-control:focus {
        outline: none;
        border-color: var(--primary);
        background-color: #ffffff;
    }

/* BOTÃO */
input[type="submit"] {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s ease;
}

    input[type="submit"]:hover {
        background: #162c48;
    }

/* =======================
   IMAGEM DIREITA
======================= */
.login-image {
    width: 55%;
    position: relative;
    background-image: url("https://moraescoelho.com.br/wp-content/uploads/2022/04/bg_bar_2.jpg");
    background-size: cover;
    background-position: center;
}

.login-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom right, rgba(31, 58, 95, 0.85), rgba(31, 58, 95, 0.70) );
}


/* =======================
   RESPONSIVO
======================= */
@media (max-width: 900px) {
    .container-login {
        flex-direction: column;
        height: auto;
    }

    .login-form,
    .login-image {
        width: 100%;
    }

    .login-image {
        height: 240px;
    }

    .logo-form img {
        width: 160px;
    }
}

/* MOBILE LOGIN IMPROVEMENTS */
@media (max-width: 900px) {
    body {
        height: auto;
        min-height: 100dvh;
        align-items: stretch;
        justify-content: flex-start;
        padding: 12px;
        background: linear-gradient(180deg, #f3f6fb 0%, #e9eef5 100%);
    }

    .container-login {
        width: 100%;
        max-width: 540px;
        min-height: calc(100dvh - 24px);
        margin: 0 auto;
        border-radius: 18px;
        box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    }

    .login-form {
        padding: 30px 22px 28px;
    }

    .login-image {
        height: 180px;
        order: -1;
    }

    .subtitle {
        margin-bottom: 24px;
    }

    input.form-control,
    input[type="submit"] {
        min-height: 48px;
        font-size: 16px;
        border-radius: 10px;
    }

    label {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 0;
        background: #eef2f8;
    }

    .container-login {
        min-height: 100dvh;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .login-image {
        display: none;
    }

    .login-form {
        width: 100%;
        max-width: 420px;
        margin: auto;
        padding: 28px 20px max(24px, env(safe-area-inset-bottom));
    }

    .logo-form {
        margin-bottom: 14px;
    }

    .logo-form img {
        width: 150px;
    }

    .subtitle {
        font-size: 13px;
    }
}