/* ==========================================
   PÁGINA DE LOGIN - JP PRIME
   Layout corrigido conforme design
   ========================================== */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #E8E4DF;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    
}

/* Imagem de fundo - PRÉDIO NO LADO DIREITO */
.bg-image {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 100vh;
    background-image: url('../assets/bg_login.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

/* Retângulos decorativos */
.bg-rectangles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/bg_retangulos.png');
    background-size: 600px auto;
    background-repeat: no-repeat;
    background-position: left top;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

/* Container */
.container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 100px;
}

/* Lado esquerdo - Logo e Card */
.left-side {
    width: 100%;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo */
.logo-container {
    
    margin-bottom: 50px;
}

.logo {
    width: 220px;
    height: auto;
    display: block;
    margin-top:160px;
}

/* Card de Login */
.login-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 40px 48px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.login-card h2 {
    font-size: 26px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 36px;
    text-align: left;
    letter-spacing: 0.5px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
}

.form-group input {
    width: 100%;
    background: #DDD5CA;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: #333;
}

.form-group input:focus {
    outline: none;
    background: #D4CCC1;
}

.form-group input::placeholder {
    color: #999;
}

/* Botão */
.form-actions {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.btn-primary {
    width: auto;
    min-width: 200px;
    background: #3E3228;
    color: #FFFFFF;
    border: none;
    padding: 12px 40px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: #2E2520;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 50, 40, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    margin-top: 32px;
    text-align: left;
}

.footer p {
    color: #666666;
    font-size: 12px;
    font-weight: 400;
}

/* Mensagens */
.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.message.hidden {
    display: none;
}

.message.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.message.success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

/* Responsivo */
@media (max-width: 1200px) {
    .bg-image {
        width: 50%;
    }
    
    .container {
        padding-left: 60px;
    }
}

@media (max-width: 1024px) {
    .bg-image {
        width: 45%;
        opacity: 0.7;
    }
    
    .container {
        padding-left: 40px;
    }
    
    .left-side {
        max-width: 480px;
    }
    
    .logo {
        width: 280px;
    }
}

@media (max-width: 768px) {
    body {
        background: #E8E4DF;
    }
    
    .bg-image {
        display: none;
    }
    
    .bg-rectangles {
        opacity: 0.15;
    }
    
    .container {
        padding: 20px;
        justify-content: center;
    }
    
    .left-side {
        align-items: center;
        max-width: 100%;
    }
    
    .logo {
        width: 260px;
    }
    
    .login-card {
        padding: 36px;
    }
    
    .footer {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .logo {
        width: 220px;
    }
    
    .login-card {
        padding: 28px;
    }
    
    .login-card h2 {
        font-size: 24px;
    }
    
    .form-group input {
        padding: 14px 16px;
    }
    
    .btn-primary {
        padding: 14px;
    }
}