@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #201b2c;
    color: #fff;
    overflow: hidden;
}

.main-login {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Imagem lateral com overlay suave */
.left-login {
    flex: 1;
    background: url('../img/login-image.jpg') center/cover no-repeat;
    position: relative;
}

.left-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(32, 27, 44, 0.4);
    backdrop-filter: brightness(0.7);
}

/* Divisor centralizado reto */
.divider {
    width: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: transparent;
}

.divider .line {
    width: 100%;
    margin: 4px 0;
}

.divider .green {
    height: 30%;
    background-color: #00ff88;
}

.divider .white {
    height: 40%;
    background-color: #ffffff;
}

/* Painel de login modernizado */
.right-login {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    background: #2f2841;
}

.right-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(32, 27, 44, 0.6));
}

.card-login {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    padding: 2rem 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

.card-login h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    color: #00ff88;
    letter-spacing: 2px;
}

.field-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.field-group label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: #e0e0e0;
}

/* Estiliza cada opção do select */
.field-group select option {
    background-color: #2f2841;
    /* mesma cor de fundo do painel direito */
    color: #fff;
    /* texto branco */
}

/* Destaca a opção quando passar o mouse */
.field-group select option:hover {
    background-color: #00ff88;
    /* verde claro */
    color: #201b2c;
    /* texto escuro para contraste */
}

/* Quando a opção estiver selecionada (no próprio select fechado) */
.field-group select:focus option:checked {
    background-color: #00d474;
    color: #201b2c;
}

/* Se quiser remover o ícone padrão e customizar */
.field-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20...%3C/svg%3E");
    /* seta custom */
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.field-group input,
.field-group select {
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: background 0.3s;
}

.field-group input::placeholder {
    color: #cccccc;
}

.field-group input:focus,
.field-group select:focus {
    background: rgba(255, 255, 255, 0.25);
}

.btn-login {
    width: 100%;
    padding: 0.9rem;
    margin-top: 1.2rem;
    border: none;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #201b2c;
    background: linear-gradient(90deg, #00ff88, #00d474);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.4);
}

.btn-login:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 255, 136, 0.6);
}

.btn-login:active {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.4);
}

/* Texto freteiro com maior espaçamento */
.freteiro-text {
    margin-top: 2rem;
    /* aumentado para criar distância do botão */
    text-align: center;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.freteiro-text a {
    color: #00d474;
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.freteiro-text a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: #00d474;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.freteiro-text a:hover::after {
    transform: scaleX(1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivo */
@media (max-width: 800px) {
    .main-login {
        flex-direction: column;
    }

    .left-login {
        height: 40vh;
    }

    .divider {
        display: none;
    }

    .right-login {
        background: #2f2841;
    }
}