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

:root {
    --primary-color: #396FA2;
    --secondary-color: #D5E3EE;
    --white-color: #FFFFFF;
    --text-color: #333333;
    --light-background: #F2F5F7;
    --error-bg-color: #f8d7da;
    --error-text-color: #721c24;
}

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

body {
    font-family: 'Poppins', sans-serif;
    overflow: hidden; /* Esconde barras de rolagem */
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz o vídeo cobrir toda a tela */
}

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Sobreposição escura */
    z-index: -1;
}

.login-wrapper {
    display: flex;
    justify-content: flex-end; /* Alinha o painel à direita */
    align-items: center;
    height: 100vh;
    padding: 0 5%;
}

.login-form-panel {
    width: 100%;
    max-width: 420px;
    background-color: rgba(255, 255, 255, 0.98); /* Fundo branco levemente transparente */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
}

.form-header img {
    max-width: 180px;
    margin-bottom: 15px;
}

.form-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--secondary-color);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #2b5a8b; /* Tom mais escuro do azul */
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.form-footer a:hover {
    text-decoration: underline;
}

.error-message {
    background-color: var(--error-bg-color);
    color: var(--error-text-color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9em;
}

.error-message:empty {
    display: none;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .login-wrapper {
        justify-content: center; /* Centraliza o painel em telas menores */
    }
    .login-form-panel {
        margin: 0 15px;
    }
}