* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
}

.login-wrapper {
    display: flex;
    width: 900px;
    max-width: 95%;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-section {
    flex: 1;
    padding: 50px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-section .logo {
    max-width: 200px;
    margin-bottom: 25px;
    align-self: center;
}

.form-section .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.form-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: #686868;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #afafaf;
    font-size: 16px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f2f5;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #5641e7;
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
    position: relative; /* ADICIONADO: Necessário para posicionar o ícone dentro do campo */
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 14px 20px;
    border: none;
    background-color: #f0f2f5;
    border-radius: 12px;
    font-size: 15px;
    color: #333;
    transition: box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 57, 101, 0.4);
}

/* NOVO: Estilos para o ícone de visualizar senha */
.form-group #togglePassword {
    position: absolute;
    right: 20px;
    bottom: 15px;
    cursor: pointer;
    color: #afafaf;
    transition: color 0.2s ease;
}

.form-group #togglePassword:hover {
    color: #555;
}


.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
}

.remember-me input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #e53965;
}

.remember-me label {
     margin-bottom: 0;
     text-transform: none;
     font-weight: 500;
     cursor: pointer;
}

.forgot-password a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #e53965;
}

.btn-login {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #513be5, #7260ee);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 229, 229, 0.4);
}

.welcome-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 50px;
    position: relative;
    background-image: url('../../assets/img/login.png'); /* Caminho ajustado para a nova estrutura */
    background-size: cover;
    background-position: center;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(116, 98, 239, 0.85), rgba(79, 57, 229, 0.85));
    z-index: -1;
}

.welcome-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.welcome-section p {
    font-size: 16px;
    margin-bottom: 0;
    max-width: 300px;
    font-weight: 400;
}

.welcome-section .description {
    text-align: justify;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 350px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: #ffebee;
    color: #c62828;
    font-size: 14px;
    border-left: 4px solid #c62828;
    text-align: left;
}

@media (max-width: 850px) {
    .login-wrapper {
        flex-direction: column;
    }
    .welcome-section {
        padding: 40px 20px;
        border-radius: 0 0 20px 20px;
    }
    .form-section {
        padding: 40px 30px;
    }
}