/* --- CSS LOGIN GE: VERSÃO FINAL  --- */

:root {
    --primary: #32a791;
    --dark: #104080;
    --bg: #f4f7f6;
}

/* Container Principal - Ajustado para permitir scroll se o erro aparecer */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--bg);
    margin: 0;
    padding: 20px 10px;
    box-sizing: border-box;
    overflow-y: auto; 
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Card de Login - Sem max-height fixo para não cortar o conteúdo */
.login-card {
    background: #ffffff;
    width: 100%;
    max-width: 400px; 
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Logo Superior */
.login-header {
    text-align: center;
    margin-bottom: 15px;
}

.login-logo {
    max-height: 120px; 
    width: auto;
    display: block;
    margin: 0 auto;
}

/* Inputs */
.input-group {
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    height: 48px;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 16px; 
    box-sizing: border-box;
}

/* Botão Submit */
.btn-login {
    width: 100%;
    height: 55px;
    background: linear-gradient(135deg, var(--primary) 0%, #2a8e7b 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(50, 167, 145, 0.3);
}

/* Alerta com Foto - Flex Row para texto ao lado */
.login-alert-container {
    display: flex;
    flex-direction: row; 
    align-items: center;
    margin-top: 20px;
    background: #fff5f5;
    border: 1px solid #f8d7da;
    border-radius: 10px;
    padding: 10px;
    gap: 12px;
    min-height: 110px; /* Garante espaço para a foto de 100px */
}

.login-fabio-img {
    height: 100px !important; 
    width: auto;
    flex-shrink: 0;
}

.login-alert {
    color: #c0392b;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1; /* Força o texto a ocupar o espaço restante */
}

/* Espaçador para quando não há erro */
.login-spacer {
    height: 20px;
}

/* --- AJUSTE EXCLUSIVO PARA MOBILE --- */
@media (max-width: 480px) {
    .login-wrapper {
        padding: 10px;
        align-items: flex-start; /* Evita que o topo seja cortado */
    }

    .login-card {
        max-width: 100%;
        padding: 20px 15px;
    }

    .login-logo {
        max-height: 140px; 
    }

    .input-group input {
        height: 60px; 
        font-size: 18px;
    }

    .btn-login {
        height: 65px;
        font-size: 18px;
    }
    
    .login-alert {
        font-size: 15px;
    }

    .login-fabio-img {
        height: 100px !important; /* Mantido 100px conforme solicitado */
    }
}