/* estilo.css - Estilos para Login */
:root {
    --primary-color: #18573C;
    --secondary-color: #0D2E20 ;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --gray-color: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
    max-height: 100vh;
}

/* Container principal */
.container {
    display: flex;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
}

/* Lado esquerdo - Login */
.login-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: white;
    max-width: 500px;
    padding: 40px;
    overflow-y: auto;
    max-height: 100vh;
}

.login-container {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.logo {
    margin-bottom: 40px;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--dark-color);
}

/* Mensagens de erro */
.error-message {
    background-color: #fef2f2;
    color: var(--danger-color);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid #fecaca;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.5s ease;
}

/* Formulário */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--gray-color);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #fff;
}

.form-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #94a3b8;
}

.forgot-password {
    display: block;
    text-align: right;
    margin-top: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-password:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

.btn-login {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

/* Divisor */
.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: var(--gray-color);
    font-size: 14px;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.divider span {
    padding: 0 20px;
    background-color: white;
}

/* Links adicionais */
.signup-link {
    text-align: center;
    margin-top: 25px;
    font-size: 15px;
    color: var(--gray-color);
    line-height: 1.8;
}

.signup-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.signup-link a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

.system-info {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--gray-color);
    font-size: 14px;
}

.system-info i {
    margin-right: 8px;
    color: var(--info-color);
}

/* Lado direito - Seção da Imagem */
.info-section {
    flex: 1.2;
    position: relative;
    overflow: hidden;
    background-color: #000;
    height: 100vh;
}

.info-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsividade */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .login-section {
        max-width: 100%;
        padding: 40px 30px;
        max-height: 50vh;
    }
    
    .info-section {
        height: 50vh;
    }
    
    .login-title {
        font-size: 28px;
    }
    
    .logo {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .login-section {
        padding: 30px 20px;
        max-height: 55vh;
    }
    
    .info-section {
        height: 45vh;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .form-input {
        padding: 14px 16px;
    }
    
    .btn-login {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    body {
        min-height: 100vh;
        max-height: 100vh;
    }
    
    .container {
        height: 100vh;
    }
    
    .login-section {
        padding: 25px 15px;
        max-height: 60vh;
    }
    
    .info-section {
        height: 40vh;
    }
    
    .logo {
        font-size: 22px;
        margin-bottom: 30px;
    }
    
    .login-title {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .form-label {
        font-size: 14px;
    }
}

/* Para telas muito largas */
@media (min-width: 1920px) {
    .login-section {
        max-width: 600px;
    }
    
    .login-container {
        max-width: 500px;
    }
    
    .login-title {
        font-size: 36px;
    }
    
    .form-input {
        padding: 18px 20px;
        font-size: 17px;
    }
    
    .btn-login {
        padding: 20px;
        font-size: 18px;
    }
}

/* Prevenir scroll horizontal */
html, body, .container, .login-section, .info-section {
    overflow-x: hidden;
}