﻿@import url("https://fonts.googleapis.com/css?family=Mystery+Quest");

* {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    height: 100vh;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(-45deg, #1a237e, #283593, #1e88e5, #0d47a1);
    background-size: 250% 250%;
    animation: gradientFlow 20s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    position: relative;
    overflow: hidden;
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;

}

/* Animación del fondo */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Animaciones */
@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes dataFlow {
    to {
        stroke-dashoffset: 0;
    }
}
/* Overlay de brillo */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70% );
    pointer-events: none;
}

.container {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px 25px;
    width: 365px;
    max-width: 90%; 
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

    .container::-webkit-scrollbar {
        display: none; /* Chrome, Safari y Opera */
    }

    /* Efecto de brillo al pasar el ratón */
    .container:hover {
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    }

.captcha-wrapper {
    display: flex;
    justify-content: center;
    padding: 5px;
    margin: 0 auto;

    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .captcha-wrapper:hover {
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    }


.footer {
    padding: 15px;
    width: 365px;
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    font-size: 12px;
}

/* Overlay radial para dar profundidad */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient( circle at center, transparent 20%, rgba(0,0,0,0.4) 100% );
    pointer-events: none;
    z-index: 1;
}
/* Efecto de viñeta en las esquinas */
.corner-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient( ellipse at center, transparent 50%, rgba(0,0,0,0.3) 100% );
    pointer-events: none;
    z-index: 1;
}
/* Grupo de formularios con posición relativa y márgenes ajustados */
.form-group {
    position: relative;
    margin: 20px 0;
    margin-top: 15px;
}

/* Estilos específicos para el primer grupo de formularios */
.group1 {
    margin-top: 35px;
    margin-bottom: 45px;
}

/* Estilos para el título del formulario */
.form-title {
    color: #fff;
    font-size: 2.0rem;
    font-weight: bold;
    margin-top: 60px;
}

    /* ETIQUETAS ARRIBA (como lo tenías) */
    .form-group label {
        position: absolute;
        left: 15px;
        top: -20px;
        color: #fff;
        font-size: 0.85rem;
        font-weight: 600;
        background: transparent;
        padding: 0 5px;
        z-index: 2;
    }

    /* CAMPOS CON BORDES BLANCOS Y EFECTO DE BRILLO */
    .form-group input {
        width: 100%;
        height: 40px;
        background: rgba(255, 255, 255, 0.05);
        border: 2px solid rgba(255, 255, 255, 0.3);
        outline: none;
        font-size: 1rem;
        padding: 0px 0px 5px 0px;
        color: #fff;
        border-radius: 15px;
        transition: all 0.3s ease;
        /* Efecto de brillo heredado del container */
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.1);
        /* Brillo radial similar al container */
        position: relative;
        overflow: hidden;
    }

        /* Pseudo-elemento para el efecto de brillo */
        .form-group input::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            right: -50%;
            bottom: -50%;
            background: radial-gradient( circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 70% );
            pointer-events: none;
            z-index: 1;
            animation: pulseGlow 6s ease infinite;
        }

        /* EFECTO AL ENFOCAR */
        .form-group input:focus {
            border-color: rgba(255, 255, 255, 0.6);
            background: rgba(255, 255, 255, 0.08);
            box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.15);
        }

/* Animación del brillo */
@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

/* Animación del brillo */
@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(0.95);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

/* Estilo para el campo de contraseña */
.group2 .form-control {
    flex: 1;
}

/* Estilo para el botón de mostrar/ocultar */
.toggle-password {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    margin-left: 5px;
    transition: all 0.3s ease;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.1);
    /* Brillo radial similar al container */
    position: relative;
    overflow: hidden;
}

    .toggle-password:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
    }

    .toggle-password i {
        font-size: 1rem;
    }

.fa-eye, .fa-eye-slash {
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.toggle-password:hover i {
    opacity: 1;
}

.input-label {
    position: absolute;
    left: 8px;
    top: -18px; /* Siempre en la parte superior */
    transition: top 0.3s, font-size 0.3s;
    color: #fff;
    font-size: 1rem;
    pointer-events: none;
    font-weight: bold;
}



    /* Estilo para el grupo de contraseña */
.form-group.group2 {
    position: relative;
    margin: 30px 0;
}

/* Contenedor flexible para campo y botón */
.password-container {
    display: flex;
    align-items: center;
}


/* Estilos para los enlaces en el formulario */
.form-group a {
    color: #fff;
    text-decoration: none;
    transition: .3s;
    font-size: .9em;
}

    .form-group a:hover {
        text-decoration: underline;
    }

/* Estilos para el botón primario del formulario */
.btn-primary {
    width: 95%;
    height: 45px;
    border-radius: 15px;
    background: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    font-size: 1rem;
    transition: .4s;
    color: black;
    margin-top: 10px;
    margin-bottom: 5px;
}

    .btn-primary:hover {
        opacity: .9;
    }

/* Estilos para mensajes de error */
.text-danger {
    color: #ff0000;
}

/* Estilos para el efecto de etiqueta flotante en la entrada de texto */
.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group input:not(:placeholder-shown) ~ label {
    top: -5px;
    font-size: 0.8rem;
}

/* Estilos para el enlace de "¿Olvidaste tu contraseña?" */
.forgot-password-link {
    color: #fff;
    text-decoration: none;
    transition: .3s;
    font-size: .9em;
}

    .forgot-password-link:hover {
        text-decoration: underline;
        color: #ccc;
    }

.logo-section {
    position: relative;
    width: 100%;
    height: 130px; /* Altura fija para la sección del logo */
    margin-bottom: 15px;
}

.circle {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 10px; /* Lo movemos hacia arriba para que quede centrado en la parte superior del contenedor */
    transform: translateX(-50%);
    background-image: url('/Content/Login/Imagenes/LogoCircular.png');
    background-size: cover;
    background-position: center;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.2); /* Borde sutil */
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), /* Sombra exterior */
    inset 0 0 10px rgba(59, 130, 246, 0.3); /* Sombra interior */
    backdrop-filter: blur(5px); /* Efecto de desenfoque para integrarlo con el fondo */
    animation: float 4s ease-in-out infinite; /* Animación de flotación */
}

/* Animación de flotación */
@keyframes float {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.form-title {
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    padding-top: 10px;
}

/* Media queries para ajustes responsivos */
@media screen and (max-width: 480px) {
    .logo-section {
        height: 150px;
    }

    .circle {
        width: 120px;
        height: 120px;
    }

    .form-title {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 320px) {
    .logo-section {
        height: 130px;
    }

    .circle {
        width: 100px;
        height: 100px;
    }

    .form-title {
        font-size: 1.5rem;
    }
}

/* Cambia el fondo del ojo en el campo de contraseña a blanco */
.form-group input[type="password"] + .password-toggle::before {
    background-color: #fff;
}
