

.login-card .form-group {
    position: relative;
}

.login-card .form-label {
    color: #2d3748;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    display: block;
}

.login-card .form-label .text-green {
    color: #48bb78;
}

.login-card .input-group-text {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-right: none;
    color: #718096;
    padding: 10px 16px;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.login-card .form-control {
    border: 2px solid #e2e8f0;
    border-left: none;
    color: #2d3748;
    padding: 10px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #ffffff;
}

.login-card .form-control:focus {
    border-color: #48bb78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

.login-card .form-control:focus + .input-group-text {
    border-color: #48bb78;
}

.login-card .form-control::placeholder {
    color: #a0aec0;
    font-size: 0.9rem;
}

.login-card .input-group:focus-within .input-group-text {
    border-color: #48bb78;
}

/* Botón de mostrar contraseña */
#togglePassword {
    border: 2px solid #e2e8f0;
    border-left: none;
    background: #f7fafc;
    border-radius: 0 8px 8px 0;
    padding: 10px 16px;
    color: #718096;
    transition: all 0.2s ease;
}

#togglePassword:hover {
    background: #edf2f7;
    color: #48bb78;
}

#togglePassword:focus {
    box-shadow: none;
}

/* Checkbox personalizado */
.form-check-input:checked {
    background-color: #48bb78;
    border-color: #48bb78;
}

.form-check-input:focus {
    border-color: #48bb78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.2);
}

/* Texto de ayuda */
.text-muted {
    color: #a0aec0 !important;
}

.login-card .forgot-password {
    color: #48bb78;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-card .forgot-password:hover {
    color: #38a169;
    text-decoration: underline;
}

/* Icono en el botón de login */
.btn-login i {
    font-size: 0.9rem;
}

/* Mejorar el register link */
.register-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.register-link p {
    color: #718096;
    font-size: 0.95rem;
    margin: 0;
}

.register-link p i {
    color: #48bb78;
}

.register-link a {
    color: #48bb78;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.register-link a:hover {
    color: #38a169;
    text-decoration: underline;
}

/* Animación de entrada para los campos */
.login-card .form-group {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.login-card .form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.login-card .form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.login-card .form-check {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.login-card .btn-login {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    color: #2d3748;
    overflow-x: hidden;
    line-height: 1.6;
}

#particles-body {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
}
#particles-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(72, 187, 120, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

#particles-body canvas {
    display: block;
    opacity: 0.6;
}

#particles-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#particles-nav canvas {
    opacity: 0.4;
}

#particles-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#particles-footer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
#particles-info canvas {
    opacity: 0.3;
}



#particles-footer canvas {
    opacity: 0.2;
}

.navbar {
    background: #ffffff !important;
    position: relative;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 0;
    height: 70px;
}

.navbar .container {
    height: 100%;
}

.navbar .navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c !important;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar .navbar-brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.navbar .navbar-brand span {
    color: #2b6cb0;
}

.navbar .nav-link {
    color: #4a5568 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0 20px !important;
    height: 70px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
    border-bottom: 3px solid transparent;
}

.navbar .nav-link:hover {
    color: #2b6cb0 !important;
    border-bottom-color: #2b6cb0;
}

.navbar .nav-link.active {
    color: #2b6cb0 !important;
    border-bottom-color: #2b6cb0;
}

.navbar .navbar-toggler {
    border: none;
    padding: 8px;
}

.navbar .navbar-toggler:focus {
    box-shadow: none;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 5;
    padding: 100px 0 80px;
}

.hero-section h1 {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-section h1 .highlight {
    color: #48bb78;
}

.hero-section .lead {
    color: #cbd5e0;
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-section .lead i {
    color: #48bb78;
    margin-right: 8px;
}

.login-card {
    background: #ffffff;
    padding: 40px 35px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
    position: relative;
}

.login-card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.login-card .card-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-card .card-header h3 {
    color: #2d3748;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

.login-card .card-header h3 i {
    color: #48bb78;
    margin-right: 10px;
}

.login-card .card-header p {
    color: #718096;
    font-size: 0.95rem;
    margin: 5px 0 0;
}

.login-card .form-label {
    color: #4a5568;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.login-card .input-group {
    margin-bottom: 5px;
}

.login-card .input-group-text {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-right: none;
    color: #718096;
    padding: 10px 16px;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
}

.login-card .form-control {
    border: 2px solid #e2e8f0;
    border-left: none;
    color: #2d3748;
    padding: 10px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
    background: #ffffff;
}

.login-card .form-control:focus {
    border-color: #48bb78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

.login-card .form-control::placeholder {
    color: #a0aec0;
}

.login-card .input-group:focus-within .input-group-text {
    border-color: #48bb78;
}

.btn-login {
    background: #48bb78;
    color: #ffffff;
    border: none;
    padding: 12px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    transition: background 0.2s ease;
    width: 100%;
    margin-top: 5px;
}

.btn-login:hover {
    background: #38a169;
    color: #ffffff;
}

.btn-login:active {
    transform: scale(0.98);
}

.login-card .register-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.login-card .register-link p {
    color: #718096;
    font-size: 0.95rem;
    margin: 0;
}

.login-card .register-link a {
    color: #48bb78;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.login-card .register-link a:hover {
    color: #38a169;
    text-decoration: underline;
}

/* ===== ALERTAS ===== */
.alert {
    border-radius: 8px;
    border: none;
    padding: 12px 16px;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.alert-danger {
    background: #fff5f5;
    color: #e53e3e;
    border: 1px solid #fed7d7;
}

.alert-success {
    background: #f0fff4;
    color: #38a169;
    border: 1px solid #c6f6d5;
}

.alert .btn-close {
    font-size: 0.8rem;
    padding: 8px;
}

/* ===== INFO SECTION - PROFESIONAL ===== */
#info-section {
    position: relative;
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 5;
    border-top: 1px solid #e2e8f0;
}

#info-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

#info-section h2 span {
    color: #48bb78;
}

.dynamic-card-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.dynamic-card {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    width: 280px;
    transition: all 0.3s ease;
    color: #2d3748;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dynamic-card:hover {
    transform: translateY(-4px);
    border-color: #48bb78;
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.12);
}

.dynamic-card i {
    font-size: 2.5rem;
    color: #48bb78;
    margin-bottom: 15px;
    display: inline-block;
}

.dynamic-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.dynamic-card p {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.dynamic-card.active {
    border-color: #48bb78;
    background: #f0fff4;
}

/* ===== FOOTER - PROFESIONAL ===== */
footer {
    background: #1a202c;
    position: relative;
    z-index: 5;
    padding: 25px 0;
    border-top: 3px solid #48bb78;
}

footer p {
    margin: 0;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 400;
    text-align: center;
}

footer p i {
    color: #48bb78;
    margin: 0 4px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #edf2f7;
}

::-webkit-scrollbar-thumb {
    background: #48bb78;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #38a169;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-section {
        padding: 80px 0 60px;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
        text-align: center;
    }
    
    .hero-section .lead {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .login-card {
        margin-top: 40px;
    }
    
    .navbar .nav-link {
        height: 50px;
        padding: 0 15px !important;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .navbar .nav-link:hover {
        border-bottom-color: transparent;
        border-left-color: #2b6cb0;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .login-card .card-header h3 {
        font-size: 1.3rem;
    }
    
    .dynamic-card {
        width: 100%;
        max-width: 320px;
        padding: 25px 20px;
    }
    
    #info-section h2 {
        font-size: 2rem;
    }
    
    #info-section {
        padding: 50px 0;
    }
    
    .navbar {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .btn-login {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .login-card .form-control,
    .login-card .input-group-text {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

/* ===== UTILIDADES ===== */
.text-green {
    color: #48bb78;
}

.bg-green-light {
    background: #f0fff4;
}

.border-green {
    border-color: #48bb78 !important;
}

.shadow-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}


/* Fondo del modal */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header del modal */
.modal-header {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-bottom: 2px solid #e2e8f0;
    padding: 20px 25px;
}

.modal-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #48bb78, #38a169);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.modal-title {
    font-size: 1.3rem;
    color: #2d3748;
}

.modal-header .text-muted {
    color: #718096 !important;
    font-size: 0.85rem;
}

.modal-header .btn-close {
    padding: 10px;
    transition: all 0.2s ease;
}

.modal-header .btn-close:hover {
    transform: rotate(90deg);
    background: rgba(229, 62, 62, 0.1);
    border-radius: 50%;
}

/* Body del modal */
.modal-body {
    padding: 30px 25px;
    background: #ffffff;
}

/* Footer del modal */
.modal-footer {
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    padding: 15px 25px;
    justify-content: center;
}

.modal-footer p {
    margin: 0;
}

.modal-footer a {
    color: #48bb78;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.modal-footer a:hover {
    color: #38a169;
    text-decoration: underline;
}

.password-strength {
    margin-top: 8px;
}

.password-strength .progress {
    background: #edf2f7;
    border-radius: 4px;
    overflow: hidden;
    height: 4px !important;
}

.password-strength .progress-bar {
    background: #e53e3e;
    height: 100%;
    transition: width 0.4s ease;
    border-radius: 4px;
}

.password-strength .progress-bar.weak {
    background: #e53e3e;
}

.password-strength .progress-bar.medium {
    background: #ed8936;
}

.password-strength .progress-bar.strong {
    background: #48bb78;
}

.password-strength .progress-bar.very-strong {
    background: #38a169;
}

#strengthText {
    font-size: 0.8rem;
    color: #a0aec0 !important;
    margin-top: 4px;
    display: block;
}

/* ===== VALIDACIÓN EN TIEMPO REAL ===== */
.form-control.is-valid {
    border-color: #48bb78 !important;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1) !important;
}

.form-control.is-invalid {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1) !important;
}

/* Mensaje de confirmación de contraseña */
#confirmMessage .fas {
    transition: all 0.3s ease;
}

#confirmMessage .fas.fa-check-circle {
    color: #48bb78;
}

#confirmMessage .fas.fa-times-circle {
    color: #e53e3e;
}

/* ===== RESPONSIVE MODAL ===== */
@media (max-width: 576px) {
    .modal-content {
        border-radius: 12px;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    .modal-footer {
        padding: 12px 20px;
        flex-wrap: wrap;
    }
    
    .modal-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-footer p {
        font-size: 0.85rem;
        text-align: center;
    }
}