/* ===== Ajustes de Glassmorphism e Neumorphism ===== */
:root {
    --glass-bg: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --primary-color: #1F336F;
    --secondary-color: #1f266f;
    --accent-color: #A52A2A;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

* {
    box-sizing: border-box;
    outline-color: var(--secondary-color);
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
	padding-left: 18%; 
    margin: 0;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    background: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* Aplicação do efeito Glassmorphism nos containers */
.glassmorphism {
    background: var(--glass-bg);
    border-radius: 15px;
    box-shadow: 0 4px 10px var(--shadow-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* Botões com efeito Neumorphism */
.neu-button, .btn-login {
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    padding: 12px;
    width: 100%;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2),
                -5px -5px 10px rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease-in-out;
    text-align: center;
    border: none;
}

.neu-button:hover, .btn-login:hover {
    background: var(--accent-color);
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.2),
                inset -3px -3px 6px rgba(255, 255, 255, 0.7);
    transform: scale(1.03);
    color: white;
}

/* ===== Melhorias no Vídeo de Fundo ===== */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    animation: slow-motion 60s linear infinite;
}

.video-background.loaded video {
    opacity: 1;
}

@keyframes slow-motion {
    0% { transform: translateX(-50%) translateY(-50%) scale(1); }
    50% { transform: translateX(-50%) translateY(-50%) scale(1.05); }
    100% { transform: translateX(-50%) translateY(-50%) scale(1); }
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Fallback para dispositivos que não carregam o vídeo */
.video-background .fallback-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    /* Tente caminhos alternativos para a imagem */
    background-image: url('../img/loginnovo.jpg'); /* Caminho original */
    /* background-image: url('img/loginnovo1.png'); 
    background-image: url('/img/loginnovo1.png'); Caminho a partir da raiz */
    background-size: cover;
    background-position: center;
    z-index: 0; /* Importante: aumentar para ficar acima do vídeo, mas abaixo do overlay */
}

@media (max-width: 768px) {
    .video-background video {
        display: none !important;
    }
    .video-background .fallback-img {
        display: block !important;
    }
    /* Certifique-se de que o corpo da página tenha um fundo caso a imagem falhe */
    body {
        background-color: #333; /* Um cinza escuro como fallback */
    }
}

/* Estilos do Login Container */
.login-container {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 380px;
    max-width: 90%;
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
}

.login-container:focus-within {
    transform: scale(1.02);
}

.login-header {
    background: var(--primary-color);
    color: white;
    padding: 10px;
    text-align: center;
}

.login-header img {
    max-width: 180px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.login-header img:hover {
    transform: scale(0.95);
}

.login-form {
    padding: 30px;
}

.form-floating {
    margin-bottom: 20px;
}

.form-floating input {
    border-color: var(--light-color);
    transition: border-color 0.3s ease;
    border-radius: 5px;
}

.form-floating input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.error-message {
    color: var(--accent-color);
    text-align: center;
    margin-top: 15px;
    font-weight: 500;
    animation: shake 0.5s;
}

.version-info {
    font-size: 0.9rem;
    color: #636363;
    margin-top: 15px;
}

.version-info img {
    margin-top: 15px;
    padding: 20px;
    width: 95%;
}
