@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --azul-principal: #6BB3F2;
    --negro-suave: #1e293b;
    --gris-texto: #475569;
    --font-main: 'Poppins', sans-serif;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background: radial-gradient(ellipse, #6BB3F2 0%, #ffffff 70%);
    font-family: var(--font-main);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 100px;
    z-index: 1000;
}

.titulo-header {
    display: flex;
    align-items: center;
}

.titulo-header h1 {
    font-size: 25px;
    font-weight: 700;
    color: var(--negro-suave);
}

.titulo-header img {
    width: 80px;
    height: 70px;
}

nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    align-items: center;
}

nav ul li {
    font-weight: 600;
    margin: 0 20px;
}

nav ul li a {
    font-size: 15px;
    text-decoration: none;
    color: var(--gris-texto);
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: var(--azul-principal);
}

nav ul li a::after {
    content: "";
    height: 3px;
    width: 0;
    display: block;
    transition: all 0.3s;
    background-color: var(--azul-principal);
    border-radius: 2px;
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 150px;
    width: 100%;
    max-width: 1200px;
    padding: 40px;
    z-index: 1;
}

#imagen-login {
    width: 100%;
    max-width: 500px;
    display: block;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.1));
}

form {
    width: 380px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(235, 245, 255, 0.7) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(107, 179, 242, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    border-radius: 20px;
    animation: fadeInScale 0.5s ease-out;
}

form h1 {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 30%, var(--azul-principal) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

form label {
    font-weight: 700;
    font-size: 13px;
    color: var(--negro-suave);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

form input {
    border: none;
    background-color: transparent;
    border-bottom: 1px solid #000;
    padding: 10px 0;
    margin-bottom: 10px;
    font-family: var(--font-main);
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

form input:focus {
    border-bottom: 2px solid var(--azul-principal);
    transform: translateY(-2px);
    padding-left: 5px;
}

form p {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    text-decoration: underline;
    cursor: pointer;
    margin-top: -5px;
    opacity: 0.8;
}

.btn-login {
    background: linear-gradient(135deg, var(--azul-principal) 0%, #4a9ce8 100%);
    color: #fff;
    padding: 14px;
    font-size: 16px;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(107, 179, 242, 0.3);
    margin-top: 25px;
    font-family: var(--font-main);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #7cc0f7 0%, var(--azul-principal) 100%);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 15px 30px rgba(107, 179, 242, 0.4);
}

.btn-login:active {
    transform: translateY(-1px);
}



@media (max-width: 1024px) {
    main {
        flex-direction: column;
        padding-top: 80px;
    }

    #imagen-login {
        display: none;
    }

    form {
        width: 90%;
        max-width: 350px;
    }

    header {
        padding: 20px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 2200;
    }

    .menu-toggle span {
        width: 30px;
        height: 3px;
        background-color: var(--negro-suave);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: white;
        backdrop-filter: blur(10px);
        transition: all 0.4s ease;
        z-index: 2050;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 30px;
    }

    nav ul li {
        margin: 0;
        text-align: center;
    }

    nav ul li a {
        font-size: 20px;
    }

    .menu-toggle.active {
        position: fixed;
        right: 20px;
        top: 25px;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}