﻿*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: #080710;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.background {
    width: 430px;
    height: 520px;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
}

    .background .shape {
        height: 200px;
        width: 200px;
        position: absolute;
        border-radius: 50%;
    }

.shape:first-child {
    background: linear-gradient(#1845ad, #23a2f6);
    left: -80px;
    top: -80px;
}

.shape:last-child {
    background: linear-gradient(to right, #ff512f, #f09819);
    right: -30px;
    bottom: -80px;
}

.login-form {
    height: auto;
    width: 400px;
    background-color: rgba(255, 255, 255, 0.13);
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(8, 7, 16, 0.6);
    padding: 30px 35px 70px 35px;
    text-align: left;
}

    .login-form h3 {
        font-size: 32px;
        font-weight: 500;
        line-height: 42px;
        text-align: center;
        color: white !important;
        margin-bottom: 25px;
    }

.Titulo-login {
    color: white !important;
}

.img-login {
    display: block;
    margin: 0 auto 15px auto;
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.login-form label {
    display: block;
    margin-top: 12px;
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    display: block;
    width: 100%;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 5px;
    padding: 0 15px;
    font-size: 14px;
    font-weight: 300;
    color: #fff;
    border: none;
    outline: none;
}

.login-form input::placeholder {
    color: #e5e5e5;
}

.login-form input:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Contenedor de contraseña con ícono de ojo */
.password-container {
    position: relative;
    width: 100%;
    display: block;
    margin-bottom: 0;
}

    .password-container input[type="text"],
    .password-container input[type="password"] {
        width: 100% !important;
        padding-right: 45px !important;
        display: block !important;
        height: 45px !important;
    }

.toggle-password {
    position: absolute;
    right: 12px;
    top: 12px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    width: 24px;
    height: 24px;
    pointer-events: auto;
}

    .toggle-password:hover {
        color: rgba(255, 255, 255, 1);
    }

    .toggle-password svg {
        width: 20px;
        height: 20px;
        pointer-events: none;
    }

/* Checkbox y link "olvidaste contraseña" en la misma línea */
.checkbox-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    margin-bottom: 5px;
}

.checkbox-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .checkbox-container input[type="checkbox"],
    .checkbox-left input[type="checkbox"] {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        min-height: 14px !important;
        max-width: 14px !important;
        max-height: 14px !important;
        cursor: pointer;
        accent-color: #23a2f6;
        margin: 0 !important;
        padding: 0 !important;
        background-color: transparent !important;
        display: inline-block !important;
        flex-shrink: 0;
        vertical-align: middle;
    }

.checkbox-label {
    margin: 0 !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    cursor: pointer;
    user-select: none;
    display: inline-block !important;
    line-height: 16px;
}

.link-recuperar {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    font-size: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .link-recuperar:hover {
        color: #23a2f6 !important;
        text-decoration: underline !important;
    }

.validator-message {
    display: block;
    font-size: 12px;
    margin-top: 5px;
    color: #ff6b6b !important;
}

.btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
}
.btn-registro {
    width: 100%;
    background-color: transparent;
    color: #ffffff;
    padding: 12px 0;
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    border:solid;
    cursor: pointer;
    
    transition: all 0.3s ease;
}

    .btn-registro:hover {
        background-color: #e64a2e;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 81, 47, 0.4);
    }

.btn-login {
    width: 100%;
    background-color: transparent;
    color: #ffffff;
    padding: 12px 0;
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    border: solid;
    transition: all 0.3s ease;
}

    .btn-login:hover {
        background-color: #1a8dd9;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(35, 162, 246, 0.4);
    }



#lblMensaje {
    display: block;
    text-align: center;
    margin: 10px 0;
    font-size: 13px;
    color: #ff6b6b !important;
    font-weight: 500;
}

/* Contenedor de links */
.links-container {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.link-rombo {
    color: #f09819 !important;
    text-decoration: none !important;
    font-size: 12px;
    transition: all 0.3s ease;
}

    .link-rombo:hover {
        color: #23a2f6 !important;
        text-decoration: underline !important;
    }

/* ✅ BARRA DE PROGRESO MEJORADA Y CORREGIDA */
.progress-container {
    display: none; /* Oculta por defecto */
    width: 100%;
    height: 5px; /* Aumentado para mejor visibilidad */
    background: rgba(8, 7, 16, 0.8); /* Fondo más oscuro para contraste */
    backdrop-filter: blur(10px);
    border-radius: 0;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999; /* Aumentado para asegurar que esté encima de todo */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    width: 0%;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: gradientMove 2s ease infinite;
}

/* ✅ ANIMACIÓN DE GRADIENTE */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ✅ EFECTO DE BRILLO ANIMADO */
.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.4), transparent );
    animation: shine 1.2s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* ✅ PULSO SUTIL EN EL EXTREMO */
.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20%;
    height: 100%;
    background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.6) );
    filter: blur(10px);
    opacity: 0.8;
}

/* ✅ CLASE PARA ERROR (JavaScript la aplica dinámicamente) */
.progress-fill.error {
    background: linear-gradient(90deg, #f56565 0%, #c53030 50%, #f56565 100%);
    background-size: 200% 100%;
}

/* ✅ RESPONSIVE */
@media (max-width: 768px) {
    .progress-container {
        height: 4px;
    }
}

@media (max-width: 480px) {
    .progress-container {
        height: 3px;
    }
}
