/* =========================
   CONFIGURAÇÕES GLOBAIS
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    font-family: 'DM Sans', Arial, sans-serif;
}

/* =========================
    TELA PRINCIPAL
========================= */
.login-page {
    width: 100%;
    height: 100vh;
    display: flex;
}

/* =========================
     FOTO LATERAL (ESQUERDA)
========================= */
.login-image {
    width: 40%;
    height: 100%;
}

.login-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================
   LADO DO LOGIN (DIREITA)
========================= */
.login-side {
    width: 60%;
    height: 100%;
    background-color: #fff7ed;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================
   CAIXA DO FORMULÁRIO
========================= */
.login-container {
    width: 380px;
    padding: 35px;
    background-color: #ffe3b8;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative; 
}

/* =========================
   BOTÃO FECHAR (X)
========================= */
.btn-fechar {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.05);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-fechar:hover {
    background-color: rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

/* =========================
   LOGO E TÍTULO
========================= */
.logo {
    display: block;
    width: 200px;
    height: auto;
    margin: 0 auto 20px;
}

.login-container h1 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 25px;
    color: #222;
}

/* =========================
    ESTRUTURA DO FORMULÁRIO
========================= */
form {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    margin-bottom: 18px;
    border: 1px solid #d4b891;
    border-radius: 8px;
    background-color: #fff1d8;
    outline: none;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

input:focus {
    border-color: #222;
}

/* =========================
    LINHA DIVISÓRIA E BOTÃO FINAL
========================= */
hr {
    border: none;
    border-top: 1px solid #d4b891;
    margin: 10px 0 20px;
}

.btn-entrar {
    width: 100%;
    height: 38px;
    margin: 0 auto;
    border: none;
    border-radius: 8px;
    background-color: #1a1a1a;
    color: #ffe3b8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-entrar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* =========================
    LINK DE CADASTRO
========================= */
.login-link {
    text-align: center;
    font-size: 12px;
    margin-top: 15px;
    color: #555;
}

.login-link a {
    color: #222;
    text-decoration: none;
    font-weight: bold;
}

.login-link a:hover {
    text-decoration: underline;
}

/* =======================================================
    RESPONSIVIDADE (MOBILE)
======================================================= */
@media (max-width: 768px) {
    .login-page {
        flex-direction: column;
    }

    .login-image {
        display: none;
    }

    .login-side {
        width: 100%;
    }

    .login-container {
        width: 90%;
        max-width: 400px;
        padding: 30px 20px;
    }
}