/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.particles-content .footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    justify-content: center;
    align-items: center;
    margin: auto !important;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 1rem;
}

.particles-content .footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.particles-content .footer a {
    color: #90caf9;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0 2px;
}

.particles-content .footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #90caf9;
    transition: width 0.3s ease;
}

.particles-content .footer a:hover {
    color: #fff;
}

.particles-content .footer a:hover::after {
    width: 100%;
}

.particles-content h2 {
    top: 1.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    color: #ffffff; /* Color blanco para mejor contraste con el fondo azul */
    text-align: center;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Sutil sombra para mejorar legibilidad */
}

.btn-toggle-password{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background-color: #f5f7fa;
}

#container_sections {
    display: flex;
    width: 100%;
    max-height: 95vh;
    margin: 1.5rem auto;
    background: white;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    max-width: 1100px;
    border-radius: 10px;
    overflow: hidden;
}

@media (max-width: 1200px) {
    #container_sections {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    #container_sections {
        flex-direction: column;
        max-width: 100%;
        border-radius: 0;
    }
}

/* Particles Container */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
    display: block; /* Aseguramos que esté visible por defecto */
}

/* Ocultar partículas y sección de partículas en móviles */
@media (max-width: 768px) {
    #particles-js,
    .particles-section {
        display: none !important;
    }
    
    body {
        background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
        padding: 1rem;
    }
    
    #container_sections {
        box-shadow: none;
        margin: 0;
        border-radius: 8px;
        height: auto;
        min-height: 100%;
    }
}

/* Main Layout */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
}

/* Form Section */
.form-section {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    position: relative;
    z-index: 3;
    max-width: 450px;
    margin: 1rem auto;
    width: 100%;
    overflow-y: auto;
    scrollbar-width: none; /* Para Firefox */
    -ms-overflow-style: none; /* Para IE y Edge */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 480px) {
    .form-section {
        padding: 1.5rem;
        margin: 2rem auto; /* Centrado vertical y horizontal */
        width: 90% !important; /* 90% del ancho */
        max-width: 400px; /* Máximo ancho para pantallas más grandes */
        min-height: auto;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    }
    
    .logo-container {
        margin-bottom: 1.5rem;
    }
    
    .logo-container img {
        max-height: 80px !important;
    }
    
    .form-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .btn-submit {
        padding: 12px;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    .form-options {
        margin: 1.25rem 0;
        text-align: center;
    }
    
    .forgot-password {
        font-size: 0.9rem;
    }
    
    .divider {
        margin: 1.5rem 0;
    }
    
    .form-footer {
        margin-top: 1.5rem;
        font-size: 0.8rem;
    }
    
    .form-footer a {
        white-space: nowrap;
    }
}

/* Ocultar scrollbar para Chrome, Safari y Opera */
.form-section::-webkit-scrollbar {
    width: 5px;
    background: transparent;
}

.form-section::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
}

/* Mostrar scrollbar al hacer hover */
.form-section:hover::-webkit-scrollbar-thumb {
    background: #c1c1c1;
}

.form-section:hover {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.logo-container::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 8px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 80%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(1px);
}

.logo {
    max-width: 180px;
    height: auto;
}

/* Form Elements */
.form-container {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 0;
}

h1 {
    color: #1a237e;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

/* Input styles have been removed to use browser defaults */

/* Password Toggle */
.btn-toggle-password {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    margin-left: -30px;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.2rem 0 1.5rem;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
}


/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 12px;
    background: #4e73df;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:disabled {
    background: #a5b4fc;
    cursor: not-allowed;
}

.button-text {
    transition: opacity 0.3s ease;
}

.button-loader {
    display: none;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-submit:hover {
    background: #283593;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: #999;
    font-size: 0.8rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    padding: 0 1rem;
}

/* Register Link */
.text-center {
    text-align: center;
    margin: 0.7rem 0 0.5rem;
    font-size: 0.9rem;
}

.register-link {
    color: #1a237e;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
}

.register-link:hover {
    text-decoration: underline;
}

/* Form Footer */
.form-footer {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: #666;
    text-align: center;
}

.form-footer a {
    color: #1a237e;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Particles Section */
.particles-section {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
    color: white;
    padding: 3rem 2rem;
    min-height: 400px;
}

.particles-content {
    max-width: 500px;
    text-align: center;
    z-index: 3;
}

.particles-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    font-weight: 700;
}

.particles-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.features {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.features p {
    display: flex;
    align-items: center;
    margin: 0 0 1rem 0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.features p:last-child {
    margin-bottom: 0;
}

.features p:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.features i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 12px;
    background: rgba(100, 181, 246, 0.2);
    color: #64b5f6;
    border-radius: 50%;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.features p:hover i {
    background: #64b5f6;
    color: white;
    transform: scale(1.1);
}

/* Footer */
.form-footer {
    margin-top: 0.8rem;
    text-align: center;
    padding: 0.5rem 0 0;
    font-size: 0.7rem;
    color: #777;
    border-top: 1px solid #f0f0f0;
}

/* Responsive Design */
@media (max-width: 992px) {
    body {
        display: block;
        min-height: auto;
    }
    
    #container_sections {
        flex-direction: column;
        max-width: 100%;
        margin: 0.5rem 0;
        max-height: none;
    }
    
    .form-section {
        padding: 1.8rem 1.5rem;
        max-width: 100%;
        order: 2;
    }
    
    .particles-section {
        padding: 1.8rem 1.5rem;
        min-height: 250px;
        order: 1;
    }
    
    .footer {
        margin-top: 1.2rem;
    }
}

@media (max-width: 576px) {
    .form-section {
        padding: 1.5rem 1rem;
    }
    
    .particles-section {
        padding: 1.5rem 1rem;
    }
    
    .form-container {
        padding: 0.5rem 0;
    }
    
    .logo {
        max-width: 150px;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-container {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1a237e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}/ *   H i d e   Y r o s   C h a t   W i d g e t   * /   # y r o s - f l o a t i n g - b t n ,   # y r o s - c h a t - w i n d o w ,   # y r o s - w e l c o m e - p o p u p   {   d i s p l a y :   n o n e   ! i m p o r t a n t ;   }  
 