/* --- ESTILOS PARA A TELA DE LOGIN (login.css) --- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-wrapper {
    width: 100%;
    max-width: 450px;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Área do Logotipo */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
}

/* Placeholder para quando não houver logo */
.logo-container:not(:has(img[src*="."])) {
    position: relative;
}

.logo-container:not(:has(img[src*="."])):before {
    content: "LOGO";
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    letter-spacing: 4px;
}

/* Título e Subtítulo */
.login-container h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 35px;
}

/* Grupos de Input */
.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input-group input::placeholder {
    color: #bdc3c7;
}

/* Mensagem de Erro */
.error-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background-color: #fee;
    border: 2px solid #fcc;
    border-radius: 10px;
    color: #c33;
    margin-bottom: 25px;
    font-size: 0.9rem;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-message svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Botão de Login */
.btn-login {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-login:active {
    transform: translateY(0);
}

/* Footer */
.footer-text {
    margin-top: 25px;
    text-align: center;
}

.footer-text p {
    color: #95a5a6;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.footer-text p:before {
    content: "🔒";
    font-size: 1rem;
}

/* Responsividade */
@media (max-width: 500px) {
    .login-container {
        padding: 30px 25px;
    }
    
    .login-container h2 {
        font-size: 1.5rem;
    }
    
    .logo-container {
        min-height: 100px;
        padding: 15px;
    }
}