* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    flex-direction: row;
}

/* Lado esquerdo - Formulário */
.login-left {
    flex: 7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: white;
    position: relative;
    min-height: 100vh;
}

.login-container {
    background: transparent;
    padding: 0;
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.logo-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo {
    max-width: 350px;
    height: auto;
    margin-bottom: 1rem;
}

.system-title {
    color: #1e40af;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(30, 64, 175, 0.1);
    line-height: 1.1;
}

.login-form {
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1e40af;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e7ff;
    border-radius: 15px;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: #f8fafc;
    color: #1e293b;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
}

.form-group input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.btn-entrar {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-entrar:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.btn-entrar:active {
    transform: translateY(-2px);
}

.forgot-password {
    text-align: center;
}

.forgot-password a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Lado direito - Imagem */
.login-right {
    flex: 3;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    filter: brightness(0.9) contrast(1.1);
    display: block;
}

/* Mensagens */
.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid #fecaca;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.1);
}

.success-message {
    background: #f0fdf4;
    color: #059669;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid #bbf7d0;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close:hover {
    color: #000;
}

.modal-content h2 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-recuperar {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-recuperar:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Responsividade */
@media (max-width: 1024px) {
    .login-left {
        flex: 6;
    }
    
    .login-right {
        flex: 4;
    }
}

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
    }
    
    .login-left {
        flex: 1;
        padding: 2rem 1rem;
        min-height: auto;
    }
    
    .login-right {
        flex: 1;
        min-height: 300px;
    }
    
    .login-container {
        max-width: 100%;
    }
    
    .logo {
        max-width: 300px;
    }
    
    .system-title {
        font-size: 2.5rem;
    }
    
    .form-group label {
        font-size: 1rem;
    }
    
    .form-group input {
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .btn-entrar {
        padding: 1.25rem;
        font-size: 1.1rem;
    }
    
    .forgot-password a {
        font-size: 1rem;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 250px;
    }
    
    .system-title {
        font-size: 2rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .btn-entrar {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .forgot-password a {
        font-size: 0.9rem;
    }
}


