/* Container principal */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh; /* Ajustado para centralizar melhor na tela */
    padding: 15px;
}

/* O Card - Onde a mágica acontece */
.login-card {
    background: #ffffff;
    width: 100%;
    max-width: 350px; /* Largura reduzida para ser mais delicado */
    padding: 2rem;    /* Padding reduzido (antes era 3rem) */
    border-radius: 16px; /* Cantos mais suaves */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05); /* Sombra bem leve */
}

/* Header mais compacto */
.login-header {
    text-align: center;
    margin-bottom: 1.8rem;
}

.login-logo {
    width: 65px; /* Reduzi um pouco o tamanho */
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.login-header h3 {
    color: #333;
    font-size: 1.3rem; /* Título menos agressivo */
    margin-bottom: 2px;
}

.login-header p {
    color: #888;
    font-size: 0.85rem;
}

/* Inputs mais elegantes */
.input-group-custom {
    position: relative;
    margin-bottom: 1rem; /* Espaçamento menor entre campos */
}

.input-group-custom span {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1.1rem;
}

/* Estilização do grupo de input para o Select */
.input-group-custom select {
    width: 100%;
    padding: 12px 40px; /* Espaço para o ícone à esquerda */
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 16px;
    color: #333;
    appearance: none; /* Remove a seta padrão do navegador */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Estado de Foco (Focus) */
.input-group-custom select:focus {
    outline: none;
    border-color: #0d6efd; /* Azul Bootstrap 5 */
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* Ajuste do ícone MDI posicionado dentro do campo */
.input-group-custom {
    position: relative;
    margin-bottom: 20px;
}

.input-group-custom .mdi {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 20px;
    z-index: 10;
    pointer-events: none; /* Garante que o clique passe para o select */
}

/* Estilização das opções (limitada pelo SO, mas melhora a leitura) */
.input-group-custom select option {
    padding: 10px;
    background-color: #fff;
    color: #333;
}

/* Feedback visual para campo obrigatório não preenchido */
.input-group-custom select:invalid {
    color: #999;
}

.input-group-custom input {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Altura menor para não ficar 'balão' */
    border: 1.5px solid #edf2f7;
    border-radius: 10px;
    font-size: 0.95rem;
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

.input-group-custom input:focus {
    background-color: #fff;
    border-color: #4a90e2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
    outline: none;
}

/* Botão mais moderno e slim */
.btn-login {
    width: 100%;
    padding: 12px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, background 0.3s;
    margin-top: 10px;
}

.btn-login:active {
    transform: scale(0.98); /* Efeito de clique */
}

/* Container da mensagem de erro */
.login-error-msg {
    background-color: #fff5f5; /* Fundo levemente avermelhado */
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 15px;
    font-family: 'Segoe UI', Roboto, sans-serif;
    
    text-align: left;
}

/* Ícone de alerta e texto do erro */
.login-error-msg .mdi-alert-circle, 
.login-error-msg .text {
    color: #c53030; /* Vermelho mais sóbrio */
    font-size: 14px;
    font-weight: 500;
}

.login-error-msg .mdi-alert-circle {
    margin-right: 5px;
}

/* Link do WhatsApp */
.login-error-msg .btn-whats {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    color: #25d366; /* Cor oficial do WhatsApp */
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.login-error-msg .btn-whats:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.login-error-msg .btn-whats i {
    font-size: 16px;
    margin-right: 6px;
}

/* Ajustes para Mobile */
@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem; /* Menos espaço interno no celular */
        max-width: 100%;  /* Garante que não ultrapasse a tela */
    }
    
    .login-header h3 {
        font-size: 1.15rem;
    }
}