/* Estilos generales */
.hidden { display: none; }

.main-content {
    margin-top: 85px;
    margin-bottom: 85px;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

body, html {
    height: 100vh;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    padding: 0;
    margin: 0;
    transition: background 0.5s ease-in-out;
    background: #f4f4f4; /* Color por defecto */
    color: #333;
    display: flex;             /* NECESARIO */
    flex-direction: column;    /* Vertical */
}

html.logged-in, body.logged-in {
    background: #dae7dd !important; /* Verde pastel */
}

h2, h3 { color: #2c3e50; }

a { color: #007bff; cursor: pointer; }
a:hover { text-decoration: underline; }

/* Contenedores */
.container, #forgotPasswordContainer, #changePassContainer{
    max-width: 400px;
    margin: auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in-out;
}



#forgotPasswordContainer {
    background-color: #f0f8ff;
    width: 100%;
    box-sizing: border-box;
}
#changePassContainer{
    background-color: #f0f8ff;
    width: 100%;
    box-sizing: border-box;
}

#verifyCodeContainer{
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Formulario */
.form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input:focus { border-color: #28a370; }

/* Botones */
button, .small-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
}

button {
    background: #28a370;
    color: white;
}

button:hover { background: #21865b; }

.small-button {
    font-size: 14px;
    background: #007bff;
}

.small-button:hover { background: #0056b3; }

/* Mensajes de estado */
#error-message, #forgotPasswordMessage, .description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

#error-message { color: #ca5d51; display: none; }

#successMessage {
    background: #d4edda;
    padding: 20px;
    border-radius: 10px;
    animation: fadeIn 0.5s;
}

#successMessage h2 { color: #60b373; }

/* Spinner de carga */
#loading {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 2s linear infinite;
    display: none;
    margin: 20px auto;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Política de contraseña */
.password-policy {
    text-align: left;
    padding: 15px;
   
}

.password-policy ul {
    font-size: 14px;
    color: #555;
    padding-left: 20px;
}

/* Logo */
.logo { width: 100px; margin-bottom: 15px; }

.logout-text {
    font-size: 14px;
    color: #007bff;
    cursor: pointer;
}

.logout-text:hover {
    text-decoration: underline;
}


.captcha-container { 
    position: relative; 
    width: 300px; 
    height: 200px; 
    background: #ddd; 
    border: 2px solid #333;
    box-shadow: 2px 2px 10px rgba(192, 192, 192, 0.2); 
}
canvas { 
    position: absolute; 
    top: 0; 
    left: 0;
 }
.slider-container { margin-top: 10px; 
    text-align: center; 
}

.status {
    text-align: center; 
    margin-top: 5px;
    font-weight: bold; 
    }

.login-error-message {
        display: none;
        font-size: 13px;
        font-family: 'Poppins', sans-serif;
        background-color: #fdecea;
        color: #c9695e;
        padding: 8px 12px;
        font-size: 0.875rem;
        border-left: 4px solid #f5c6cb;
        border-radius: 4px;
        margin-top: 12px;
        transition: all 0.5s ease;
        animation: fadeIn 0.5s ease-in-out
 }
    

 .footer {
    width: 100vw;
    position: relative;
    text-align: center;
    padding: 8px 10px;
    bottom: 0;
    background-color: #f9f9f9;
    font-size: 0.65rem; /* Más pequeño */
    color: #555;
    box-sizing: border-box;
    z-index: 10;
}

body.welcome-anonymous .card-body { background-color:#f2f7f1}