* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #ffffff;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- CONTAINER PRINCIPAL (Split Screen no PC) --- */
.login-container {
    width: 100%;
    max-width: 1100px;
    height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

/* Coluna da Esquerda: Imagem Conceitual (Sumiu ou encolheu no mobile) */
.login-hero {
    position: relative;
    background: url('https://images.unsplash.com/photo-1507133750040-4a8f57021571?q=80&w=800') center center no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px;
}

.login-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(43, 27, 23, 0.9) 0%, rgba(43, 27, 23, 0.2) 100%);
}

.hero-text {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.hero-text h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-text p {
    color: #c8b1aa;
    font-size: 16px;
}

/* Coluna da Direita: Formulário de Login */
.login-form-section {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    overflow-y: auto;
}

.form-header {
    margin-bottom: 32px;
}

.brand-badge {
    color: #8c6239;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 8px;
}

.form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2b1b17;
}

.form-header p {
    font-size: 14px;
    color: #6c757d;
    margin-top: 4px;
}

/* Estrutura de Formulário e Inputs Fluídos */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper i.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 16px;
}

.login-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: #f8f9fa;
    border: 1px solid #eef1f6;
    border-radius: 16px;
    padding: 16px 16px 16px 48px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s;
}

.login-input:focus {
    border-color: #2b1b17;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(43, 27, 23, 0.03);
}

/* Botão de ocultar/mostrar senha */
.btn-toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    font-size: 16px;
}

/* Esqueceu a Senha */
.forgot-password-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -8px;
}

.forgot-link {
    font-size: 13px;
    color: #8c6239;
    text-decoration: none;
    font-weight: 600;
}

/* Botões Principais */
.btn-login-submit {
    background: #2b1b17;
    color: #ffffff;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.btn-login-submit:hover { background: #1f1310; }

/* Separador Divisor */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #adb5bd;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 24px 0;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eef1f6;
}

.divider:not(:empty)::before { margin-right: .75em; }
.divider:not(:empty)::after { margin-left: .75em; }

/* Botões de Redes Sociais */
.social-login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-social {
    background: #ffffff;
    border: 1px solid #eef1f6;
    padding: 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-social:hover { background: #f8f9fa; }

/* Rodapé de cadastro */
.form-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: #6c757d;
}

.form-footer a {
    color: #2b1b17;
    text-decoration: none;
    font-weight: 700;
}

/* ==========================================================
   MEDIA QUERY: Telas de Celular (Mobile)
   ========================================================== */
@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr; /* Coluna única */
        height: auto;
        min-height: 100vh;
    }

    /* Transforma a imagem hero em um topo compacto para mobile */
    .login-hero {
        height: 200px;
        padding: 24px;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 24px;
        margin-bottom: 4px;
    }

    .hero-text p {
        font-size: 13px;
    }

    .login-form-section {
        padding: 32px 20px;
        border-radius: 24px 24px 0 0;
        margin-top: -24px; /* Sobrepõe levemente a imagem para efeito fluido */
        position: relative;
        z-index: 5;
    }

    .form-header h2 {
        font-size: 24px;
    }
}


.login-message{
    margin-bottom:15px;
    padding:12px;
    border-radius:8px;
    display:none;
}

.login-message.error{
    display:block;
    background:#FEE2E2;
    color:#991B1B;
    border:1px solid #FCA5A5;
}

.login-message.success{
    display:block;
    background:#DCFCE7;
    color:#166534;
    border:1px solid #86EFAC;
}