/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    font-family: Inter, Arial, Helvetica, sans-serif;
}


/* =========================================================
   BODY
   ========================================================= */

body {
    min-height: 100vh;

    background: #0f172a;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   CONTAINER DO LOGIN
   ========================================================= */

.login-container {
    width: 90%;
    max-width: 1000px;

    min-height: 400px;

    display: flex;

    background: #ffffff;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.40);
}


/* =========================================================
   LADO ESQUERDO
   ========================================================= */

.login-left {
    flex: 1;

    min-width: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 50px;

    background: #ffffff;
}


/* =========================================================
   LOGO
   ========================================================= */

.login-left img {
    display: block;

    width: auto;
    max-width: 450px;
    max-height: 280px;

    height: auto;

    object-fit: contain;
}


/*
   Se sua logo PNG já for branca, NÃO precisa
   colocar nenhum filtro aqui.

   Se a logo for colorida e você quiser transformá-la
   completamente em branca, descomente:

   filter: brightness(0) invert(1);
*/


/* =========================================================
   LADO DIREITO
   ========================================================= */

.login-right {
    flex: 1;

    min-width: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 60px;

    background: #ffffff;
}


/* =========================================================
   CAIXA DO FORMULÁRIO
   ========================================================= */

.login-box {
    width: 100%;
    max-width: 400px;
}


/* =========================================================
   TÍTULO
   ========================================================= */

.login-right h2 {
    margin-bottom: 10px;

    color: #0f172a;

    font-size: 32px;
    font-weight: 700;
}


/* =========================================================
   SUBTÍTULO
   ========================================================= */

.login-right .subtitle {
    margin-bottom: 30px;

    color: #64748b;

    font-size: 15px;
}


/* =========================================================
   GRUPO DOS CAMPOS
   ========================================================= */

.input-group {
    width: 100%;

    margin-bottom: 18px;
}


/* =========================================================
   LABEL
   ========================================================= */

.input-group label {
    display: block;

    margin-bottom: 7px;

    color: #334155;

    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   INPUTS
   ========================================================= */

.login-right input {
    width: 100%;

    height: 48px;

    padding: 0 14px;

    background: #ffffff;

    color: #0f172a;

    border: 1px solid #e2e8f0;

    border-radius: 8px;

    outline: none;

    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* Placeholder */

.login-right input::placeholder {
    color: #94a3b8;
}


/* Campo selecionado */

.login-right input:focus {
    border-color: #0ea5e9;

    box-shadow:
        0 0 0 3px rgba(14, 165, 233, 0.12);
}


/* =========================================================
   BOTÃO ENTRAR
   ========================================================= */

.login-right button {
    width: 100%;

    height: 48px;

    margin-top: 4px;

    padding: 0 14px;

    background: #0ea5e9;

    border: none;

    border-radius: 8px;

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.1s ease;
}


/* Hover */

.login-right button:hover {
    background: #0284c7;
}


/* Clique */

.login-right button:active {
    transform: scale(0.99);
}


/* =========================================================
   MENSAGEM DE ERRO
   ========================================================= */

.error {
    display: block;

    width: 100%;

    margin-bottom: 20px;

    padding: 12px 14px;

    background: #fef2f2;

    border: 1px solid #fecaca;

    border-radius: 8px;

    color: #ef4444;

    font-size: 14px;
}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 768px) {

    body {
        padding: 20px;
    }

    .login-container {
        width: 100%;

        min-height: auto;

        flex-direction: column;

        border-radius: 16px;
    }


    /* Logo */

    .login-left {
        min-height: 220px;

        padding: 40px;
    }

    .login-left img {
        max-width: 220px;
        max-height: 120px;
    }


    /* Formulário */

    .login-right {
        padding: 40px 30px;
    }


    .login-box {
        max-width: 100%;
    }


    .login-right h2 {
        font-size: 28px;
    }
}


/* =========================================================
   CELULARES PEQUENOS
   ========================================================= */

@media (max-width: 480px) {

    body {
        padding: 10px;
    }

    .login-container {
        border-radius: 12px;
    }

    .login-left {
        min-height: 180px;

        padding: 30px;
    }

    .login-left img {
        max-width: 180px;
        max-height: 100px;
    }

    .login-right {
        padding: 30px 20px;
    }

    .login-right h2 {
        font-size: 26px;
    }
}