﻿@import url('https://fonts.googleapis.com/css2?family=Ancizar+Sans:ital,wght@0,100..1000;1,100..1000&family=Arvo:ital,wght@0,400;0,700;1,400;1,700&family=Dangrek&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lexend:wght@100..900&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto+Slab:wght@100..900&family=Rubik:ital,wght@0,300..900;1,300..900&family=Sigmar&family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Urbanist", sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    background-image: url('/Contenedor/img/imagen.png');
    background-repeat: no-repeat;
    background-size: cover;
    animation: moveBackground 30s ease-in-out infinite;
}

@keyframes moveBackground {

    0%, 100% {
        background-position: center;
    }

    25% {
        background-position: left center;
    }

    50% {
        background-position: right center;
    }

    75% {
        background-position: center bottom;
    }
}

/* Floating particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

    .particle:nth-child(1) {
        left: 10%;
        animation-delay: -2s;
    }

    .particle:nth-child(2) {
        left: 20%;
        animation-delay: -4s;
        animation-duration: 12s;
    }

    .particle:nth-child(3) {
        left: 30%;
        animation-delay: -6s;
        animation-duration: 18s;
    }

    .particle:nth-child(4) {
        left: 40%;
        animation-delay: -8s;
        animation-duration: 14s;
    }

    .particle:nth-child(5) {
        left: 50%;
        animation-delay: -10s;
    }

    .particle:nth-child(6) {
        left: 60%;
        animation-delay: -12s;
        animation-duration: 16s;
    }

    .particle:nth-child(7) {
        left: 70%;
        animation-delay: -14s;
    }

    .particle:nth-child(8) {
        left: 80%;
        animation-delay: -16s;
        animation-duration: 13s;
    }

    .particle:nth-child(9) {
        left: 90%;
        animation-delay: -18s;
        animation-duration: 17s;
    }

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

.login-container {
    position: relative;
    width: 400px;
    padding: 10px 40px;
    border-radius: 20px;
    backdrop-filter: blur(30px) saturate(120%);
    -webkit-backdrop-filter: blur(30px) saturate(120%);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05)), rgba(0, 0, 0, 0.1);
    z-index: 200;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25), 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* El contenedor completo aparece de una vez */
    opacity: 0;
    transform: translateY(100px) scale(0.8);
    animation: slideInUpComplete 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes slideInUpComplete {
    0% {
        transform: translateY(100px) scale(0.8);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.login-container .perfil {
    position: relative;
    width: 100%;
    height: 105px;
    text-align: center;
    top: -50px;
}

.login-container img {
    position: relative;
    width: 38%;
    border-radius: 50%;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid rgba(255, 255, 255, 0.7);
}

    .login-container img:hover {
        transform: scale(1.08) rotateY(10deg);
        filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.4));
        border-color: rgba(255, 255, 255, 0.5);
    }

.login-container h2 {
    color: #fff;
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 20px;
    font-weight: 600;
}

.input-group {
    position: relative;
    margin-bottom: 24px;
}

    .input-group input {
        width: 100%;
        padding: 12px 18px;
        background: #fff;
        border-radius: 10px;
        font-size: 14.5px;
        font-weight: 500;
        outline: none;
        letter-spacing: 1.1px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        animation: slideInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        transition: all 0.2s ease;
        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25), 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }

        /* Estilos para autofill */
        .input-group input:-webkit-autofill,
        .input-group input:-webkit-autofill:hover,
        .input-group input:-webkit-autofill:focus,
        .input-group input:-webkit-autofill:active {
            -webkit-box-shadow: 0 0 0 30px #fff inset !important;
            -webkit-text-fill-color: #626060c6 !important;
            transition: background-color 5000s ease-in-out 0s;
        }

    .input-group label {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 15px;
        color: #b8b9bb;
        pointer-events: none;
        transition: all 0.3s ease;
        background: transparent;
        padding: 0 5px;
        font-weight: 600;
    }

        .input-group label .lbl-icon {
            padding: 0px 5px;
            color: #2b91d49b;
        }

    /*llenar input*/
    .input-group input:focus,
    .input-group input:valid {
        border: 2px solid rgba(21, 119, 238, 0.85);
        background: #fff;
    }

        .input-group input:focus + label,
        .input-group input:valid + label {
            top: 0;
            left: 10px;
            font-size: 13px;
            background: #fff;
            color: #2c90d2e6;
            padding: 2px 6px;
            border-radius: 6px;
        }

            .input-group input:focus + label .lbl-icon,
            .input-group input:valid + label .lbl-icon {
                display: none;
            }

    .input-group input:-webkit-autofill + label {
        top: 0;
        left: 10px;
        font-size: 13px;
        background: #fff;
        color: rgba(7, 79, 167, 0.85);
    }

    /*Input Password*/
    .input-group.password-group {
        position: relative;
    }

    .input-group input[type="password"] {
        padding-right: 50px;
        font-family: "JetBrains Mono", monospace;
        letter-spacing: 1.5px;
    }

        .input-group input[type="password"]::-ms-reveal {
            display: none;
        }

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 14px;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

    .password-toggle:hover {
        color: #6b7280;
        background: rgba(0, 0, 0, 0.05);
        transform: translateY(-50%) scale(1.1);
    }

    .password-toggle:active {
        transform: translateY(-50%) scale(0.95);
    }

    .password-toggle:focus {
        outline: none;
        color: #519defea;
        background: rgba(59, 130, 246, 0.1);
    }

/*Boton*/
.submit-btn {
    width: 100%;
    padding: 14px;
    margin: 8px 0 12px 0;
    background: linear-gradient(135deg, #49acef 0%, #2179b4 100%);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(73, 172, 239, 0.4), 0 10px 20px rgba(0, 0, 0, 0.15), inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

    .submit-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3), transparent );
        transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .submit-btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .submit-btn:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 28px 56px rgba(73, 172, 239, 0.5), 0 14px 28px rgba(0, 0, 0, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
        background: linear-gradient(135deg, #3d9de8 0%, #1e6b96 100%);
    }

        .submit-btn:hover::before {
            left: 100%;
        }

    .submit-btn:active {
        transform: translateY(-2px) scale(1.01);
        transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    }

        .submit-btn:active::after {
            width: 300px;
            height: 300px;
            opacity: 0;
        }

    .submit-btn:focus {
        outline: none;
        box-shadow: 0 0 0 4px rgba(73, 172, 239, 0.3), 0 28px 56px rgba(73, 172, 239, 0.5), 0 14px 28px rgba(0, 0, 0, 0.2);
    }

/*Enlace recuperar password*/
.link {
    padding: 15px 0;
    text-align: center;
}

    .link a {
        font-size: 14px;
        color: #fff;
        transition: all 0.2s ease;
    }

    .link a {
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }

        .link a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: #fff;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .link a:hover {
            font-size: 14.5px;
            text-shadow: 0 0 10px rgba(33, 121, 180, 0.5);
        }

            .link a:hover::after {
                width: 100%;
            }

@media (max-width: 480px) {

    .login-container {
        width: 90%;
        padding: 20px 30px;
        margin: 20px;
    }

        .login-container .perfil {
            height: 96px;
        }

        .login-container h2 {
            margin-top: -10px;
        }
}
