/* =========================================================
   PÁGINA DE LOGIN
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
}

body {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    font-family: 'Segoe UI', sans-serif;

    background-color: #f4f4f4;
    background: url('../cota220.jpg') no-repeat center center;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* =========================================================
   FORMULARIO
   ========================================================= */

.login-form {
    position: relative;
    z-index: 2;

    width: min(300px, calc(100% - 2rem));
    margin-bottom: 1.5rem;
    padding: 2rem;

    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

.login-form h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
}

.login-form input {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.login-form button {
    width: 100%;
    padding: 0.5rem;

    border: none;
    border-radius: 4px;

    background-color: #007bff;
    color: white;

    cursor: pointer;
}

.login-form button:hover {
    background-color: #0056b3;
}

/* =========================================================
   TÍTULO ANIMADO
   ========================================================= */

.titulo-glow {
    position: relative;
    z-index: 2;

    overflow: hidden;
    color: white;
    font-size: 6vw;
    font-weight: bold;
}

.titulo-glow::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;

    width: 50%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );

    animation: shine 4s infinite;
}

@keyframes shine {
    from {
        left: -75%;
    }

    to {
        left: 125%;
    }
}

/* Oscurecimiento del fondo */
.overlay-darken {
    position: fixed;
    inset: 0;
    z-index: 1;

    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}