/* Estilos Modernos para Login - Glassmorphism con Gradiente Morado */

/* Body específico para login */
.login-page-modern {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Container principal */
.login-container-modern {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

/* Wrapper del contenido */
.login-content-wrapper {
    width: 100%;
}

/* Sección del logo */
.login-logo-section {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.6s ease;
}

.login-logo-img {
    /* Sin restricción de tamaño - usa tamaño original */
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* Icono de usuario circular */
.user-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.7s ease;
}

.user-icon-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.user-icon-circle:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.user-icon-circle svg {
    width: 70px;
    height: 70px;
    fill: white;
}

/* Alertas de error modernas */
.login-alert-modern {
    background: rgba(239, 68, 68, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    color: white;
    font-size: 0.95rem;
    animation: fadeIn 0.5s ease;
}

/* Grupos de input modernos */
.input-group-modern {
    position: relative;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

.input-icon-modern {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: #a78bfa;
    z-index: 1;
    pointer-events: none;
}

.input-group-modern input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 15px 15px 15px 45px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    border-radius: 0;
}

.input-group-modern input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-group-modern input:focus {
    border-bottom-color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: #ECECEC;
    /* Color del texto al escribir */
}

.input-group-modern input:-webkit-autofill,
.input-group-modern input:-webkit-autofill:hover,
.input-group-modern input:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.1) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Botón de login moderno con efectos sutiles */
.btn-login-modern {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: #e5e7eb;
    color: #5b21b6;
    margin-top: 20px;
    /* Reducido para subir el botón */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.9s ease;
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo sutil al pasar el mouse */
.btn-login-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-login-modern:hover::before {
    width: 300px;
    height: 300px;
}

.btn-login-modern:hover {
    background: #f3f4f6;
    color: #6d28d9;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Efecto sutil al presionar */
.btn-login-modern:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* Sección de registro */
.register-section-modern {
    text-align: center;
    margin-top: 20px;
    /* Reducido para subir el enlace */
    animation: fadeInUp 1s ease;
}

.register-section-modern p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

.register-section-modern a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.register-section-modern a:hover {
    color: #e9d5ff;
}

/* Sección de soporte */
.support-section-modern {
    text-align: center;
    margin-top: 50px;
    animation: fadeInUp 1.1s ease;
}

.support-section-modern h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.support-section-modern p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.support-section-modern a {
    color: white;
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.support-section-modern a:hover {
    color: #e9d5ff;
}

/* Animaciones */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .login-container-modern {
        padding: 15px;
    }

    /* Logo usa tamaño original en móvil también */

    .user-icon-circle {
        width: 110px;
        height: 110px;
    }

    .user-icon-circle svg {
        width: 55px;
        height: 55px;
    }

    .input-group-modern input {
        font-size: 16px;
        /* Previene zoom en iOS */
    }

    .support-section-modern {
        margin-top: 35px;
    }
}

/* Responsive para pantallas muy pequeñas */
@media (max-width: 480px) {
    .login-logo-section {
        margin-bottom: 30px;
    }

    .user-icon-wrapper {
        margin-bottom: 30px;
    }

    /* Logo usa tamaño original en pantallas pequeñas también */

    .user-icon-circle {
        width: 100px;
        height: 100px;
    }

    .user-icon-circle svg {
        width: 50px;
        height: 50px;
    }

    .support-section-modern h3 {
        font-size: 1rem;
    }

    .support-section-modern p {
        font-size: 0.85rem;
    }
}