﻿/* =======================================================
   LAYOUT GENERAL - ACTUALIZADO
======================================================= */

.login-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    min-height: calc(100vh - var(--nav-height) - var(--footer-height));
}


/* =======================================================
   LOGIN SECTION - CENTRADO
======================================================= */

.login-section {
    min-width: 300px;
    max-width: 420px;
    width: 100%;
    display: flex;
    justify-content: center;
}


/* =======================================================
   TARJETA LOGIN
======================================================= */

.login-card {
    width: 100%;
    background: rgba(25,40,84,0.88);
    padding: 2rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    color: white;
    backdrop-filter: blur(8px);
}


/* =======================================================
   LOGIN HEADER
======================================================= */

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .login-header h2 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .login-header p {
        opacity: .8;
        font-size: .9rem;
    }


/* =======================================================
   INPUTS
======================================================= */

.input-group {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: .8rem;
    margin-bottom: 1rem;
    position: relative;
}

    .input-group input {
        flex: 1;
        border: none;
        background: transparent;
        outline: none;
        color: white;
        padding-right: 35px;
    }

        .input-group input::placeholder {
            color: rgba(255,255,255,0.7);
        }

        /* Ocultar ojitos nativos */
        .input-group input::-ms-reveal,
        .input-group input::-ms-clear {
            display: none;
            width: 0;
            height: 0;
        }

        .input-group input::-webkit-contacts-auto-fill-button,
        .input-group input::-webkit-credentials-auto-fill-button {
            visibility: hidden;
            display: none !important;
            pointer-events: none;
            position: absolute;
            right: 0;
        }

.icon {
    margin-right: 8px;
}

.eye {
    cursor: pointer;
    position: absolute;
    right: 12px;
    z-index: 10;
    font-size: 1.2rem;
    user-select: none;
}


/* =======================================================
   BOTON LOGIN
======================================================= */

.login-btn {
    width: 100%;
    padding: .9rem;
    border-radius: 10px;
    border: none;
    background: #fdd757;
    color: #192854;
    font-weight: 700;
    margin-top: 1rem;
    transition: .3s;
}

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }


/* =======================================================
   LINKS LOGIN
======================================================= */

.login-links {
    margin-top: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.forgot-link {
    font-size: .85rem;
    color: #fff;
    opacity: .9;
    text-decoration: none;
}

    .forgot-link:hover {
        text-decoration: underline;
        color: #fdd757;
    }

.register-btn {
    padding: .7rem;
    border-radius: 8px;
    background: transparent;
    border: 1px solid #fdd757;
    color: #fdd757;
    text-decoration: none;
    font-weight: 600;
    transition: .3s;
}

    .register-btn:hover {
        background: #fdd757;
        color: #192854;
    }


/* =======================================================
   AYUDA - NUEVO (debajo del login)
======================================================= */

.help-wrapper {
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.5rem;
}

.help-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    user-select: none;
}

    .help-trigger:hover {
        color: #fdd757;
        transform: translateY(-2px);
    }

.help-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.help-buttons {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease, margin 0.3s ease;
    opacity: 0;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .help-buttons.show {
        max-height: 150px;
        opacity: 1;
        margin-top: 1rem;
    }

.help-btn {
    width: 100%;
    padding: .8rem;
    border: none;
    border-radius: 10px;
    background: white;
    color: #1e3c72;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
    text-align: left;
    padding-left: 1rem;
}

    .help-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.25);
        background: #fdd757;
        color: #192854;
    }


/* =======================================================
   MODAL VIDEO
======================================================= */

.modal-video {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    width: 70%;
    max-width: 900px;
    background: #000;
    padding: 20px;
    border-radius: 10px;
    position: relative;
}

    .modal-content video {
        width: 100%;
    }

.close {
    position: absolute;
    right: 10px;
    top: 5px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

    .close:hover {
        color: #fdd757;
    }


/* =======================================================
   RESPONSIVE
======================================================= */

@media(max-width:600px) {
    .login-layout {
        padding: 20px;
    }

    .login-card {
        padding: 1.5rem;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .modal-content {
        width: 90%;
    }
}


/* =======================================================
   ANIMACION TARJETA LOGIN (tu animación existente)
======================================================= */

.login-card {
    position: relative;
    background: rgba(25, 40, 84, 0.95);
    border-radius: 16px;
    padding: 2.2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
    z-index: 1;
}

    .login-card > * {
        position: relative;
        z-index: 3;
    }

@keyframes moveGradient {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

.login-card::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 19px;
    padding: 3px;
    background: linear-gradient(90deg, #fdd757 0%, #4993cc 25%, #192854 50%, #bbd000 75%, #fdd757 100%);
    background-size: 200% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: moveGradient 4s linear infinite;
    z-index: 2;
    pointer-events: none;
}

.login-card .glow-spark {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 16px;
    background: radial-gradient(circle at 30% 30%, rgba(253, 215, 87, 0.15), transparent 70%);
    z-index: 2;
    pointer-events: none;
}
