/*-------------------------------------------------------------------------*/
/* Auth - DISEÑO ABIERTO SIN CAJA
/*-------------------------------------------------------------------------*/

/* Contenedor principal limpio */
.page-subbody.mt-0 {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: transparent;
}

/* Contenedor del formulario sin fondo */
.page-subbody .col-12.col-xxl-6.col-xl-6.col-lg-6.col-md-12.col-sm-12.mx-auto {
    max-width: 450px;
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Card body transparente */
.page-subbody .card-body {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    position: relative;
}

/* Eliminar el pseudo-elemento de borde */
.page-subbody .card-body::before {
    display: none;
}

/* Título del login - MEJORADO */
.login-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-title h1 {
    color: #00a8ff;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-family-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        0 0 15px rgba(0, 168, 255, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.login-title p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin: 0;
}

/* Alert de error */
.page-subbody .alert.alert-danger.error-feedback {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff6b6b;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 1.5rem;
}

/* INPUT GROUPS - DISEÑO ABIERTO CON EFECTOS */
.page-subbody .input-group.p-0.flex-row {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    height: 60px;
    background: transparent;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.page-subbody .input-group.p-0.flex-row:hover {
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 168, 255, 0.2);
}

/* Input group text (iconos) */
.page-subbody .input-group-text {
    width: 60px !important;
    height: 60px !important;
    padding: 0 !important;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.15) 0%, rgba(0, 120, 255, 0.1) 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-right: none !important;
    color: #00a8ff !important;
    font-size: 20px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
}

/* Inputs principales */
.page-subbody .form-control {
    height: 60px !important;
    min-height: 60px !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-left: none !important;
    border-radius: 0 12px 12px 0 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 500;
    padding: 0 25px !important;
    transition: all 0.3s ease;
    flex: 1;
    backdrop-filter: blur(10px);
}

.page-subbody .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 1rem;
}

.page-subbody .form-control:focus {
    outline: none !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #00a8ff !important;
    box-shadow: 
        inset 0 0 20px rgba(0, 168, 255, 0.1),
        0 0 30px rgba(0, 168, 255, 0.3) !important;
}

.page-subbody .form-control:focus + .input-group-text {
    border-color: #00a8ff !important;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.25) 0%, rgba(0, 120, 255, 0.2) 100%) !important;
    color: #00ff88 !important;
}

/* CAPTCHA SECTION - DISEÑO ABIERTO */
.page-subbody .captcha-field {
    margin: 2rem 0;
}

.page-subbody .captcha-field .input-group {
    border-radius: 12px;
    overflow: hidden;
    height: auto;
    flex-direction: column;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    background: transparent;
}

/* Label del captcha */
.page-subbody .input-group-text.w-100.rounded-0.rounded-top {
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.1) 0%, rgba(0, 120, 255, 0.05) 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: none !important;
    padding: 15px !important;
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Botón de refresh captcha */
.page-subbody .input-group-text.cursor-pointer.ms-0.rounded-0.rounded-bottom-start {
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.15) 0%, rgba(0, 120, 255, 0.1) 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-right: none !important;
    border-top: none !important;
    color: #00a8ff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.page-subbody .input-group-text.cursor-pointer.ms-0.rounded-0.rounded-bottom-start:hover {
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.25) 0%, rgba(0, 120, 255, 0.2) 100%) !important;
    color: #00ff88 !important;
}

/* Input del captcha */
.page-subbody .form-floating.ms-0.flex-grow-1 {
    flex: 1;
}

.page-subbody .captcha-input {
    height: 60px !important;
    min-height: 60px !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-left: none !important;
    border-top: none !important;
    border-radius: 0 0 12px 0 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    padding: 0 20px !important;
    font-size: 1.1rem !important;
    backdrop-filter: blur(10px);
}

.page-subbody .captcha-input:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #00a8ff !important;
    box-shadow: inset 0 0 15px rgba(0, 168, 255, 0.1) !important;
}

/* Label flotante del captcha */
.page-subbody .form-floating label {
    color: rgba(255, 255, 255, 0.6) !important;
    padding: 0 20px !important;
    font-size: 0.95rem;
}

/* CARD LINKS - DISEÑO ABIERTO */
.page-subbody .card-links {
    padding: 1.5rem 0;
    margin: 1rem 0;
}

/* Switch de recordar */
.page-subbody .form-check.form-switch {
    display: flex;
    align-items: center;
}

.page-subbody .form-check-input.remember-check {
    width: 3em !important;
    height: 1.5em !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    margin-right: 12px;
}

.page-subbody .form-check-input.remember-check:checked {
    background-color: #00a8ff !important;
    border-color: #00a8ff !important;
}

.page-subbody .form-check-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
}

/* Enlace de recuperación */
.page-subbody .card-link {
    color: #00a8ff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(0, 168, 255, 0.1);
}

.page-subbody .card-link:hover {
    color: #ffffff !important;
    background: rgba(0, 168, 255, 0.2);
    text-shadow: 0 0 8px rgba(0, 168, 255, 0.5);
    transform: translateY(-1px);
}

/* BOTÓN DE LOGIN - DISEÑO FLOTANTE */
.page-subbody .nice_button {
    width: 100%;
    height: 65px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0078ff 0%, #00a8ff 50%, #0078ff 100%);
    background-size: 200% 100%;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 
        0 8px 30px rgba(0, 120, 255, 0.4),
        0 0 35px rgba(0, 168, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.page-subbody .nice_button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.page-subbody .nice_button:hover {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(0, 120, 255, 0.6),
        0 0 45px rgba(0, 168, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.page-subbody .nice_button:hover::before {
    left: 100%;
}

.page-subbody .nice_button:active {
    transform: translateY(-1px);
}

/* Recaptcha */
.page-subbody .captcha {
    text-align: center;
    padding: 20px;
    border: 2px solid rgba(0, 168, 255, 0.2);
    border-radius: 12px;
    background: rgba(0, 168, 255, 0.05);
    margin: 2rem 0;
    backdrop-filter: blur(10px);
}

/* Responsive */
@media (max-width: 768px) {
    .page-subbody.mt-0 {
        padding: 1rem;
    }
    
    .login-title h1 {
        font-size: 2rem;
    }
    
    .page-subbody .input-group.p-0.flex-row {
        height: 55px;
    }
    
    .page-subbody .input-group-text {
        width: 55px !important;
        height: 55px !important;
        font-size: 18px;
    }
    
    .page-subbody .form-control {
        height: 55px !important;
        min-height: 55px !important;
        font-size: 1rem !important;
        padding: 0 20px !important;
    }
    
    .page-subbody .nice_button {
        height: 60px;
        font-size: 1.1rem;
    }
    
    .page-subbody .card-links {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .login-title h1 {
        font-size: 1.8rem;
    }
    
    .page-subbody .input-group.p-0.flex-row {
        height: 52px;
    }
    
    .page-subbody .input-group-text {
        width: 52px !important;
        height: 52px !important;
        font-size: 17px;
    }
    
    .page-subbody .form-control {
        height: 52px !important;
        min-height: 52px !important;
        font-size: 0.95rem !important;
    }
    
    .page-subbody .nice_button {
        height: 55px;
        font-size: 1rem;
    }
}

/* Animaciones */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.page-subbody .col-12.col-xxl-6.col-xl-6.col-lg-6.col-md-12.col-sm-12.mx-auto {
    animation: floatIn 0.6s ease-out;
}

/* Efecto de partículas en el fondo (opcional) */
.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 120, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 168, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 82, 204, 0.05) 0%, transparent 50%);
}