﻿@import url("https://fonts.googleapis.com/css?family=Mystery+Quest");

/* Configuración global para resetear márgenes, rellenos y sombras */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    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;
}


/* 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;
}

/* Contenedor principal */
.container {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    width: min(90%, 350px);
    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;
}

    /* 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);
    }



/* Estilos específicos para los grupos de formularios */
.form-group {
    position: relative;
    margin: 21px 0;
}

/* Estilos para el título del formulario */
.form-title {
    color: #fff;
    font-size: 2.0rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* 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: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.3);
    outline: none;
    font-size: 1rem;
    padding: 5px 5px 5px 5px;
    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: 100%;
    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: 150px; /* Altura fija para la sección del logo */
    margin-bottom: 20px;
}

.circle {
    width: 140px;
    height: 140px;
    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;
}

.login-form {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

/* 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;
}


/* Estilos para el botón secundario del formulario (más pequeño) */
.btn-secondary {
    width: 65%;
    height: 35px; /* Altura reducida */
    border-radius: 12px; /* Bordes ligeramente menos redondeados */
    background: transparent; /* Fondo transparente */
    border: 2px solid rgba(255, 255, 255, 0.3); /* Borde sutil */
    font-weight: bold;
    cursor: pointer;
    outline: none;
    font-size: 0.9rem; /* Tamaño de fuente más pequeño */
    transition: all 0.4s ease;
    color: white; /* Texto en blanco */
    margin-top: 10px; /* Espaciado superior */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Sombra más sutil */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    /* Estilo cuando el botón está deshabilitado */
    .btn-secondary:disabled {
        opacity: 0.5; /* Reducir opacidad */
        cursor: not-allowed; /* Cambiar el cursor a "no permitido" */
        border-color: rgba(255, 255, 255, 0.2); /* Borde más tenue */
        box-shadow: none; /* Eliminar sombra */
    }

    /* Efecto de brillo al pasar el ratón (solo cuando no está deshabilitado) */
    .btn-secondary:not(:disabled)::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 300%;
        height: 300%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 70%);
        transform: translate(-50%, -50%) scale(0);
        transition: transform 0.5s ease;
        z-index: -1;
    }

    .btn-secondary:not(:disabled):hover::before {
        transform: translate(-50%, -50%) scale(1);
    }

    /* Efecto de hover (solo cuando no está deshabilitado) */
    .btn-secondary:not(:disabled):hover {
        border-color: rgba(255, 255, 255, 0.6); /* Borde más visible */
        box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4); /* Sombra con tono azul */
        transform: translateY(-2px); /* Levantar ligeramente el botón */
    }

    /* Efecto al hacer clic (solo cuando no está deshabilitado) */
    .btn-secondary:not(:disabled):active {
        transform: translateY(0); /* Volver a la posición original */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Restaurar la sombra */
    }



    .btn-primary:hover {
        opacity: .9;
    }


/* Modal general */
.modal-custom {
    display: none;
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

/* Centro del modal en la pantalla */
.modal-dialog-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Contenido del modal con animación */
.modal-content-custom {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    width: min(90%, 600px);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    color: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(-40px);
}

.modal-title-custom {
    font-size: 20px;
}
/* Hover */
.modal-content-custom:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

/* Encabezado */
.modal-header-custom {
    background: transparent;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Cuerpo */
.modal-body-custom {
    font-size: 17px;
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center; 
    padding: 20px;
}

/* Lista de requisitos */
.requirements-list {
    font-size: 14px;
    list-style-position: inside;
    text-align: left;
}

/* Animaciones */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-40px);
    }
}

/* Al mostrar */
.modal-content-custom.show {
    animation: fadeInDown 0.4s ease forwards;
}

/* Al ocultar */
.modal-content-custom.hide {
    animation: fadeOutUp 0.4s ease forwards;
}
