/* static/css/auth_style.css */

body {
    /* Imagem de fundo de natureza */
    background: url("../img/caatinga.jpg") no-repeat center center fixed;
    background-size: cover;

    /* Fallback (caso a imagem não carregue) */
    background-color: #2e7d32; 

    /* AJUSTE: Usar min-height permite rolagem se o form for alto */
    min-height: 100vh; 

    /* AJUSTE: Adiciona espaço no topo e embaixo para não colar nas bordas */
    padding: 40px 15px; 

    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
}

/* Camada escura sobre a imagem para melhorar leitura */
body::before {
    content: "";
    position: fixed; /* Fixado para cobrir tudo mesmo ao rolar */
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Escurece 40% */
    z-index: -1;
}

.auth-card {
    width: 100%;
    /* AJUSTE: Card mais largo conforme solicitado */
    max-width: 600px; 

    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    position: relative;
}

.auth-logo img {
    max-height: 80px;
    width: auto;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.form-control:focus {
    background-color: #fff;
    border-color: #003587; 
    box-shadow: 0 0 0 3px rgba(0, 53, 135, 0.2); /* Ajustado para o azul */
}

.btn-custom {
    background-color: #003587; 
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    border: none;
    transition: background 0.3s;
}

.btn-custom:hover {
    background-color: #013075;
    color: white;
}

.btn-outline-secondary {
    border-radius: 8px;
    border: none;
    background-color: #f1f3f5;
    color: #495057;
    width: 100%;
    padding: 0.5rem;
}

.btn-outline-secondary:hover {
    background-color: #e9ecef;
    color: #212529;
}

.input-group-text {
    border-radius: 8px 0 0 8px;
    background-color: #fff;
    border-right: none;
    color: #666;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.auth-links {
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
}

.auth-links a {
    text-decoration: none;
    color: #003587;
    font-weight: 600;
}

/* AJUSTE: Ocultando o tooltip conforme solicitado */
.invalid-tooltip-custom {
    display: none;
}

.required:after {
    content: " *";
    color: red;
}
