body{
    background-color: #E6EBF9;
}
/* Login One-Page Styles */
.login-page {
    min-height: 90vh;
    position: relative;
    overflow-x: hidden;
}

/* Animations */
@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 40px rgba(102, 126, 234, 0.5));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 80px rgba(118, 75, 162, 0.7));
        transform: scale(1.05);
    }
}

/* Hero Section with Login Form - aligned with index hero */
.login-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
    overflow-x: hidden;
    z-index: 2;
}

/* Canvas for particles */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Login Form Container */
.login-form-container {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 450px;
    padding: 0 20px;
}

/* Register: wider container + 2 columns + inputs más grandes */
.register-form-container {
    max-width: 640px;
}

.register-form-container .login-form-card {
    padding: 48px 44px;
}

.register-form-container .login-input {
    padding: 18px 18px 18px 54px;
    font-size: 17px;
    border-radius: 14px;
}

.register-form-container .login-input-icon {
    width: 22px;
    height: 22px;
    left: 18px;
}

.register-form-container .login-submit-btn {
    padding: 18px 40px;
    min-height: 58px;
    font-size: 17px;
}

.register-form-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.register-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}



.login-form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(55, 54, 103, 0.15),
                0 0 40px rgba(102, 126, 234, 0.08),
                inset 0 0 0 1px rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.login-hero-content{
    min-height: unset !important;
}

.login-form-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #373667;
    margin-bottom: 30px;
}

/* Form Inputs */
.login-input-group {
    position: relative;
    margin-bottom: 20px;
}

.login-input-wrapper {
    position: relative;
    width: 100%;
}

.login-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #4d6697;
    z-index: 2;
    pointer-events: none;
    transition: none;
}

.login-input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid rgba(55, 54, 103, 0.2);
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.5;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #373667;
    box-sizing: border-box;
}

.login-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.login-input::placeholder {
    color: #4d6697;
}

.login-input.is-invalid {
    border-color: #e53e3e;
}

.login-error-message {
    color: #e53e3e;
    font-size: 14px;
    margin-top: 5px;
    display: block;
    text-align: left;
    position: relative;
    padding-left: 0;
}

/* Remember Me */
.login-remember {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.login-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.login-checkbox-label {
    color: #4a5568;
    font-size: 14px;
    cursor: pointer;
}

/* Submit Button - reuses hero-cta-primary from index */
.login-submit-btn {
    width: 100%;
    padding: 16px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 40px rgba(102, 126, 234, 0.1), inset 0 0 0 1px rgba(102, 126, 234, 0.2);
    border: none;
    background: #292866;
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
}

.login-btn-text {
    letter-spacing: 0.02em;
}

.login-submit-btn:hover {
    background: #373667;
    box-shadow: 0 20px 60px rgba(55, 54, 103, 0.25), 0 0 40px rgba(102, 126, 234, 0.15);
}

.login-submit-btn:active {
    transform: scale(0.98);
}

/* Form Links */
.login-form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 14px;
}

.login-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: #373667;
}

.login-register-tagline a:hover {
    text-decoration: underline !important;
}


/* Responsive Design */
@media (max-width: 768px) {
    /* Register: 1 columna en móvil */
    .register-form-row {
        grid-template-columns: 1fr;
        margin-bottom: 0;
        gap: 0;
    }

    .register-form-row .login-input-group {
        margin-bottom: 20px;
    }


    .login-navbar {
        padding: 15px 20px;
    }

    .login-form-card {
        padding: 30px 20px;
    }

    .login-form-title {
        font-size: 24px;
    }

    .login-submit-btn {
        min-height: 52px;
        font-size: 15px;
    }

    .login-btn-text {
        font-size: 15px;
    }

    .platform-info {
        padding: 60px 20px;
    }

    .platform-info-title {
        font-size: 32px;
    }

    .platform-info-subtitle {
        font-size: 18px;
    }

    .platform-features {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Animation on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.platform-feature {
    animation: fadeInUp 0.6s ease-out;
}

.platform-feature:nth-child(1) { animation-delay: 0.1s; }
.platform-feature:nth-child(2) { animation-delay: 0.2s; }
.platform-feature:nth-child(3) { animation-delay: 0.3s; }
.platform-feature:nth-child(4) { animation-delay: 0.4s; }
.platform-feature:nth-child(5) { animation-delay: 0.5s; }
.platform-feature:nth-child(6) { animation-delay: 0.6s; }


/* Back Button */
.back-button {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color: #d3d3d3;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-button svg {
    transition: transform 0.3s ease;
}

.back-button:hover {
    color: #ffffff;
    transform: translateX(-3px);
}

.back-button:hover svg {
    transform: translateX(-3px);
}

@media (max-width: 768px) {
    .back-button {
        top: 20px;
        left: 20px;
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Hero Header Navigation */
.login-hero a[href*="login"]:hover {
    color: #ffffff !important;
}

/* Hero CTA Buttons */
.login-hero a[href*="register"][style*="background: linear-gradient"]:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.7) !important;
}

.login-hero a[href*="login"][style*="background: transparent"]:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Hero Responsive */
@media (max-width: 768px) {
    /* Header Navigation */
    .login-hero > div[style*="position: absolute; top: 30px"] {
        top: 20px !important;
        right: 20px !important;
        gap: 15px !important;
    }

    .login-hero > div[style*="position: absolute; top: 30px"] a {
        font-size: 13px !important;
        padding: 8px 18px !important;
    }

    /* Hero Content */
    .login-hero > div[style*="min-height: 100vh"] img {
        width: 120px !important;
        height: 120px !important;
        margin-bottom: 30px !important;
    }

    .login-hero > div[style*="min-height: 100vh"] h1 {
        font-size: 50px !important;
        margin-bottom: 20px !important;
    }

    .login-hero > div[style*="min-height: 100vh"] p:first-of-type {
        font-size: 18px !important;
        padding: 0 20px;
    }

    .login-hero > div[style*="min-height: 100vh"] p:nth-of-type(2) {
        font-size: 13px !important;
        margin-bottom: 35px !important;
    }

    /* CTA Buttons */
    .login-hero > div[style*="min-height: 100vh"] > div[style*="display: flex"] {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .login-hero > div[style*="min-height: 100vh"] > div[style*="display: flex"] a {
        width: 100%;
        justify-content: center;
        padding: 14px 30px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    .login-hero > div[style*="min-height: 100vh"] h1 {
        font-size: 40px !important;
    }

    .login-hero > div[style*="min-height: 100vh"] p:first-of-type {
        font-size: 16px !important;
    }
}
