/* Importando uma fonte do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Container Principal */
.login-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 700px;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

/* Painel de Informações (Esquerda) */
.info-panel {
    flex-basis: 50%;
    /* APLICANDO O VERDE NO BACKGROUND */
    background-color: #5D7261;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.info-content {
    max-width: 400px;
}

.info-logo {
    max-width: 180px;
    margin-bottom: 30px;
    /* Filtro para garantir que a logo fique branca */
    
}

.info-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.info-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.features {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95rem;
}

.feature-item i {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
    /* Ícones com um tom de destaque sutil */
    color: rgba(255, 255, 255, 0.8);
}

/* Painel do Formulário (Direita) */
.form-panel {
    flex-basis: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.form-content {
    width: 100%;
    max-width: 380px;
}

.form-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.form-content > p {
    color: #666;
    margin-bottom: 30px;
}

/* Ajustes para o grupo do formulário */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.form-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: none;
    border-bottom: 2px solid #ddd;
    background-color: transparent;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    /* BORDA COM O VERDE QUANDO O CAMPO ESTÁ FOCADO */
    border-bottom-color: #5D7261;
}

.form-group input::placeholder {
    color: #aaa;
}

/* --- NOVAS REGRAS PARA O TOGGLE DE SENHA --- */

/* Garante que o grupo do input de senha tenha posicionamento relativo para o ícone */
.form-group.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px; /* Ajuste a distância da direita conforme seu layout */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888; /* Cor do ícone */
    z-index: 10; /* Garante que o ícone fique acima do input */
    padding: 5px; /* Para facilitar o clique */
    background-color: transparent; /* Garante que o background do ícone seja transparente */
}

/* Garante que o input de senha tenha padding suficiente à direita para o ícone */
.form-group.password-group input[type="password"],
.form-group.password-group input[type="text"] {
    padding-right: 40px;
}

/* --- FIM DAS NOVAS REGRAS --- */


.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    cursor: pointer;
}

/* CHECKBOX PERSONALIZADO COM A COR TERRACOTA */
.remember-me input[type="checkbox"] {
    accent-color: #B16338;
}

.forgot-password {
    /* LINK COM A COR TERRACOTA */
    color: #B16338;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    /* BOTÃO PRINCIPAL COM A COR TERRACOTA */
    background-color: #B16338;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s, background-color 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    background-color: #9e552d; /* Um tom mais escuro de terracota para o hover */
    box-shadow: 0 5px 15px rgba(177, 99, 56, 0.4);
}

.social-login {
    text-align: center;
    margin-top: 30px;
}

.social-login p {
    color: #888;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon.google { background-color: #DB4437; }
.social-icon.microsoft { background-color: #0078D4; }

.create-account {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #555;
}

.create-account a {
    /* LINK COM A COR TERRACOTA */
    color: #B16338;
    font-weight: 600;
    text-decoration: none;
}

.create-account a:hover {
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
        min-height: auto;
        width: 95%;
        max-width: 500px;
        margin: 20px 0;
    }

    .info-panel {
        border-radius: 20px 20px 0 0;
        padding: 50px 20px;
    }

    .form-panel {
        padding: 40px 25px;
    }
}