/* Variables de color y estilo */
:root {
    --primary-color: #006817;
    --primary-dark: #004d12;
    --primary-light: #00a11d;
    --accent-color: #00e676;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-glass: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #1a2a3a, #0d1b2a);
    background-attachment: fixed;
}

body {
    background: linear-gradient(135deg, #1a2a3a, #0d1b2a);
    background-attachment: fixed;
    min-height: 100vh;
    /* Cambiado de height a min-height */
    overflow: auto;
    /* Cambiado de hidden a auto */
    color: var(--text-light);
    margin: 0;
    position: relative;
    /* Añadido para contexto de posicionamiento */
}

/* Ajuste específico para móviles */
@media (max-width: 768px) {
    #particles-js {
        position: absolute;
        height: 100%;
    }

    body {
        overflow-x: hidden;
        /* Previene scroll horizontal */
    }
}


/* Contenedor principal de vidrio */
.glass-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 460px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    z-index: 10;
    overflow: hidden;
}

/* Logo fijo */
.logo-fixed {
    text-align: center;
    margin-bottom: 1.5rem;
    width: 100%;
    height: auto;
    max-width: 200px;
    /* Puedes ajustar este valor */
    max-height: 200px;
    /* Puedes ajustar este valor */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.logo-spin {
    text-align: center;
    margin-bottom: 1.5rem;
    width: 100%;
    height: auto;
    max-width: 200px;
    /* Puedes ajustar este valor */
    max-height: 200px;
    /* Puedes ajustar este valor */
    display: block;
    margin-left: auto;
    margin-right: auto;
}


/* Selector de formulario */
.auth-switch {
    display: flex;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 3px;
}

.auth-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-color);
}

.auth-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Formularios */
.auth-forms {
    position: relative;
    min-height: 300px;
}

.auth-form {
    position: absolute;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(20px);
}

.auth-form.active {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0);
}

/* Grupos de entrada */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.5rem;
    /* Increased size */
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.input-group input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-color);
    background: white;
}

/* Recordar usuario - Estilo Mejorado */
.remember-me {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.remember-me:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.remember-me::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.remember-me:hover::before {
    opacity: 1;
}

.custom-checkbox {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    margin-right: 15px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-checkbox:hover {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.15);
}

.custom-checkbox:checked {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-color: var(--primary-light);
    box-shadow:
        0 3px 10px rgba(0, 104, 23, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.custom-checkbox:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: white;
    font-size: 14px;
    position: absolute;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.remember-me label {
    font-size: 1rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    padding-left: 5px;
}

.remember-me label:hover {
    color: var(--accent-color);
    text-shadow: 0 0 5px rgba(0, 230, 118, 0.3);
}

/* Efecto adicional para el conjunto completo */
.remember-me:active {
    transform: translateY(1px);
}

/* Botón de enviar */
.submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(0, 104, 23, 0.3);
    overflow: hidden;
    position: relative;
}

.submit-btn span {
    position: relative;
    z-index: 1;
}

.submit-btn .btn-icon {
    margin-left: 10px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 104, 23, 0.4);
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
    opacity: 0;
    transition: all 0.3s ease;
}

.submit-btn:hover::after {
    opacity: 1;
}

/* Información del formulario */
.form-info {
    text-align: center;
    margin-bottom: 2rem;
}

.form-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.form-info p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .glass-container {
        width: 95%;
        padding: 1.5rem;
    }

    .logo-spin {
        width: 70px;
        height: 70px;
    }
}

@media (max-height: 600px) {
    .glass-container {
        top: 20px;
        transform: translate(-50%, 0);
    }
}

.nombre-sistema {
    text-align: center;
    margin-top: -1rem;
    color: var(--text-light);
}

.nombre-sistema .abreviatura {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;

}

.nombre-sistema .nombre {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.8;
}