/* app/static/css/login.css */

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-login {
    display: flex;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.header-login a img {
    height: 35px;
}

/* Layout Principal */
.login-layout-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
    margin-top: 60px; /* Compensa o header fixo */
}

/* --- BOX PADRÃO (O BLOCO QUE ESTAVA FALTANDO) --- */
.login-form-box {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px; /* Largura padrão para páginas de coluna única */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

/* --- AJUSTE PARA DUAS COLUNAS (PÁGINA DE LOGIN) --- */
.login-form-box.dual-column {
    max-width: 850px;
    flex-direction: row;
    align-items: stretch;
    text-align: left;
    gap: 0;
}

/* Colunas Individuais */
.login-column-info, .login-column-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.login-column-info {
    text-align: center;
}

.login-column-info h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
}

.login-column-info p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Divisor Central */
.login-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 40px;
}

.login-divider::before {
    content: "";
    width: 1px;
    height: 100%;
    background-color: #e0e0e0;
}

.login-divider span {
    position: absolute;
    background-color: #fff;
    padding: 10px 0;
    color: #999;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Formulário Geral */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
    width: 100%;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: bold;
    color: #444;
}

.form-group label i {
    margin-right: 5px;
    color: #007bff;
}

.form-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #007bff;
    outline: none;
}

/* Botão Login */
.btn-login {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 14px;
    font-weight: bold;
    border-radius: 6px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
}

/* Botão Social Google */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    font-weight: bold;
    transition: background 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.btn-social:hover {
    background-color: #f8f9fa;
}

.btn-social img {
    width: 20px;
}

/* Links */
.login-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.login-links a {
    font-size: 0.85rem;
    color: #007bff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.login-links a:hover {
    text-decoration: underline;
}

/* Flash Messages */
.flash-container {
    position: fixed;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 2000;
}

.flash-messages {
    list-style: none;
    padding: 0;
    width: 100%;
    max-width: 400px;
}

.flash-messages li {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.flash-messages li.danger { background-color: #f8d7da; color: #721c24; }
.flash-messages li.success { background-color: #d4edda; color: #155724; }
.flash-messages li.info { background-color: #d1ecf1; color: #0c5460; }

/* Responsividade Mobile */
@media (max-width: 768px) {
    .login-form-box.dual-column {
        flex-direction: column;
        padding: 30px 20px;
    }

    .login-divider {
        padding: 20px 0;
        flex-direction: row;
        width: 100%;
    }

    .login-divider::before {
        width: 100%;
        height: 1px;
    }

    .login-divider span {
        padding: 0 15px;
    }

    .login-column-info, .login-column-form {
        padding: 10px 0;
    }
}