﻿.login-fondo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
}

.fondo-2026 {
    background-image: url('../images/Flag.png');
    background-size: 100%;
}

.fondo-gradiente {
    background: linear-gradient(0deg, #eee, #333);
}

.fondo-xilonen {
    background-image: url('../images/xilonen-text-200px.png'), linear-gradient(#ddd, #999);
    background-repeat: repeat, no-repeat;
    background-size: 128px, 100%;
    background-blend-mode: color-dodge;
}

.fondo-dependencia {
    background-image: url('../images/quetzalcoatl-text-200px.png'), linear-gradient(#ddd, #999);
    background-repeat: repeat, no-repeat;
    background-size: 128px, 100%;
    background-blend-mode: color-dodge;
}

.fondo-estado {
    background-image: url('../images/tlaloc-text-200px.png'), linear-gradient(#ddd, #999);
    background-repeat: repeat, no-repeat;
    background-size: 128px, 100%;
    background-blend-mode: color-dodge;
}

.login-logos {
    position: fixed;
    top: 20px;
    width: 100%;
    height: 108px;
    background-image: url('../images/estatal-nuevos.png');
    background-repeat: no-repeat;
    background-position: center center; /* o center center */
    background-size: contain; /* mantiene proporción sin recortar */
    background-color: #ffffff00; /* por si la imagen no cubre todo */
    z-index: 2;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff22; /* blanco con transparencia ligera */
    backdrop-filter: blur(15px); /* efecto vidrio elegante */
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    animation: fadeIn 0.6s ease-out;
}

.login-contenedor {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-titulo {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #5F1B2D; /* tono institucional profundo */
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

    .login-logo img {
        width: 180px; /* tamaño recomendado */
        max-width: 70%; /* evita que se desborde en móvil */
        height: auto;
        opacity: 0.95; /* toque elegante */
    }

.login-label {
    font-family: 'Noto Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.1em;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 12px;
    color: #fff;
}

.login-input {
    width: 100%;
    padding: 5px 14px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: .9rem;
    transition: all 0.2s ease;
}

    .login-input:focus {
        outline: none;
        border-color: #c79b66;
        box-shadow: 0 0 0 3px rgba(255, 7, 68, 0.25);
    }

.login-button {
    width: 100%;
    margin-top: 24px;
    background-color: #b88b5b;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .login-button:hover {
        background-color: #c79b66;
    }

.login-error {
    margin-top: 16px;
    color: #fbb !important;
    font-weight: 600;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pantallas con menos de 800px de alto */ @media (max-height: 800px) {
    .login-logos {
        height: 120px;
        background-position: center top;
    }
}

/* Pantallas con menos de 650px de alto */
@media (max-height: 650px) {
    .login-logos {
        height: 90px;
        background-position: center center;
    }
}