/* -------------------------------------------------------- INDEX LOGIN -------------------------------------------------------- */
#loginbody {
    margin: 0;
    padding: 0;
    height: 100vh;
    background: linear-gradient(135deg, #a8e6cf, #dcedc1, #ffd3b6);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', sans-serif;
}

.main-container {
    background: #e8f5e9;
    border: 2px solid #81c784;
    border-radius: 20px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
    padding: 30px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-container h1 {
    color: #2e7d32;
    margin-bottom: 25px;
    font-size: 28px;
}

.login-container {
    background: #e0f2f1;
    border: 2px solid #81c784;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    padding: 30px;
    width: 320px;
    text-align: center;
}

.login-container h2 {
    color: #388e3c;
    margin-bottom: 20px;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 90%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
    border-color: #66bb6a;
}

.login-container button {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    width: 100%;
    transition: background-color 0.3s;
}

.login-container button:hover {
    background-color: #388e3c;
}

.leaf-icon {
    border-radius: 100px;
    color: #66bb6a;
    margin-bottom: 10px;
}

.login-container p {
    color: #d32f2f;
    margin: 10px 0;
    font-size: 14px;
}



.messages-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo oscuro semitransparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Por encima de todo (incluso del top-bar) */
    backdrop-filter: blur(4px); /* Opcional: desenfoca un poco el fondo */
}

/* La ventana centrada */
.message-modal {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 2px solid #81c784;
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.message-header h3 {
    margin-top: 0;
    color: #2e7d32;
    font-size: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.message-content {
    margin: 20px 0;
    font-size: 16px;
    color: #333;
}

/* Estilos según el tipo de mensaje de Django */
.message-item {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.message-item.success { background-color: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.message-item.error { background-color: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.message-item.warning { background-color: #fff3e0; color: #ef6c00; border: 1px solid #ffcc80; }
.message-item.info { background-color: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }

/* Botón de cierre */
.message-btn {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.3s;
}

.message-btn:hover {
    background-color: #388e3c;
}
