* {
    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: var(--brand-cream, #fdf6ee);
    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: Identidade da marca (Sumiu ou encolheu no mobile) */
.login-hero {
    position: relative;
    background:
        radial-gradient(rgba(255, 255, 255, 0.07) 1.5px, transparent 1.5px),
        linear-gradient(150deg, var(--brand-primary, #6d4c41), var(--brand-primary-dark, #3e2723));
    background-size: 26px 26px, cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px;
    overflow: hidden;
}

.login-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.10), transparent 55%);
    pointer-events: none;
}

.hero-mark {
    position: relative;
    z-index: 2;
    margin-bottom: auto;
}

.hero-mark img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), 0 0 0 6px rgba(255, 255, 255, 0.07);
}

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

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

.hero-text p {
    color: var(--brand-cream-dark, #efdcc3);
    font-size: 16px;
}

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

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

.logo-loja-bg { fill: var(--brand-primary, #6d4c41); }
.logo-loja-label { fill: var(--brand-primary-dark, #3e2723); }
.logo-loja-sub { fill: var(--brand-primary, #6d4c41); opacity: 0.55; }

.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: var(--brand-primary-dark, #3e2723);
    letter-spacing: -0.3px;
}

.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: var(--brand-cream, #fdf6ee);
    border: 1px solid #eee0d1;
    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: var(--brand-primary-dark, #3e2723);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}

/* 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: var(--brand-primary, #6d4c41);
    text-decoration: none;
    font-weight: 600;
}

/* Botões Principais */
.btn-login-submit {
    background: var(--brand-primary-dark, #3e2723);
    color: #ffffff;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s, transform 0.1s;
    margin-top: 8px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.btn-login-submit:hover { filter: brightness(1.1); }
.btn-login-submit:active { transform: scale(0.99); }

/* 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: transparent;
    border: 1.5px solid var(--brand-primary, #6d4c41);
    padding: 13px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-primary-dark, #3e2723);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-social:hover { background: var(--brand-cream, #fdf6ee); }

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

.form-footer a {
    color: var(--brand-primary-dark, #3e2723);
    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 identidade da marca num topo compacto para mobile */
    .login-hero {
        height: 200px;
        padding: 24px;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .hero-mark {
        display: none;
    }

    .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;
}