﻿:root {
    --landing-primary: #6366f1;
    --landing-primary-hover: #4f46e5;
    --landing-secondary: #ec4899;
    --landing-bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --form-bg: #ffffff;
    --form-input-bg: #f8fafc;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.landing-wrapper {
    min-height: 100vh;
    background-color: #f1f5f9;
    color: #1e293b;
    overflow-x: hidden;
    font-size: 14px;
}

/* Force full width by breaking out of standard containers */
body:has(.landing-wrapper) .main-content,
body:has(.landing-wrapper) .main-content > .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
		margin-top: -20px!important;
}

body:has(.landing-wrapper) {
    padding: 0 !important;
}

/* Hero Section - Full Width */
.hero-section {
    position: relative;
    background: radial-gradient(circle at top right, #39338f, #081936);
    padding: 100px 20px; /* More space for centered layout */
    color: white;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    z-index: 1;
}

.landing-wrapper .hero-content {
    width: 100%;
    max-width: var(--site-width, 1800px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.hero-title-container {
    width: 100%;
}

.hero-main-title {
    font-size: 1.8rem;
    font-weight: 850;
    line-height: 1.1;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;
}

.hero-main-title span {
    color: #cbd5e1;
}

.hero-title-line {
    width: 100%;
    max-width: 600px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #3b82f6 50%, transparent 100%);
    border-radius: 2px;
    margin: 0 auto;
}

.hero-main-layout {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 60px;
    align-items: flex-start;
    width: 100%;
}

.hero-info-side {
    display: flex;
    flex-direction: column;
    gap: 35px;
    color: #ffffff;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0;
    max-width: 600px;
}

.hero-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 600px;
}

.hero-feature-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.hero-feature-item i {
    color: #6366f1;
    font-size: 1.1rem;
}

.hero-feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
}

.hero-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #6366f1;
    color: #fff;
    padding: 10px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    width: fit-content;
    transition: all 0.2s ease;
    margin-top: 5px;
}

.hero-explore-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

@media (max-width: 1024px) {
    .hero-main-layout {
        grid-template-columns: 1fr;
        gap: 30px;
				justify-items: center;
    }

    .hero-info-side {
        order: 2; /* Show below form on mobile */
        align-items: center;
        text-align: center;
				margin-bottom: 20px;
    }
    
    .hero-features-list {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-main-title {
        font-size: 2.5rem;
    }
    .landing-wrapper .hero-content {
        align-items: center;
        text-align: center;
    }
    .hero-title-line {
        margin: 0 auto;
    }
}

.hero-auth-container {
    width: 100%;
    max-width: 480px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 500;
}

.feature-item i {
    color: #818cf8;
}

/* Premium CTA Button Stylings */
.landing-wrapper .button-primary.large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--landing-primary) 0%, var(--landing-secondary) 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 16px;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.landing-wrapper .button-primary.large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.landing-wrapper .button-primary.large:hover {
    transform: translateY(0) scale(1.02);
    box-shadow: 0 20px 35px -8px rgba(99, 102, 241, 0.5);
}

.landing-wrapper .button-primary.large:hover::before {
    opacity: 1;
}

.landing-wrapper .button-primary.large i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.landing-wrapper .button-primary.large:hover i {
    transform: rotate(15deg);
}

.landing-wrapper .button-primary.large:active {
    transform: translateY(-1px) scale(0.98);
}

/* Modern Landing Auth Design System */
.l-auth-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    border-radius: 10px; /* Very rounded as in screenshot */
    padding: 15px; /* More padding for better spaciousness */
    box-shadow: 
        0 40px 100px -20px rgba(0, 0, 0, 0.35),
        0 25px 50px -25px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.l-auth-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.l-auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-weight: 800;
    font-size: 13px;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 16px;
}

.l-auth-tab.active {
    background: #ffffff;
    color: var(--landing-primary);
    box-shadow: 0 8px 15px -4px rgba(0, 0, 0, 0.08);
}

.l-auth-content {
    padding: 0 10px 15px;
}

.l-auth-header {
    margin-bottom: 15px;
    text-align: left;
}

.l-auth-header h3 {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.l-auth-header h3 i {
    color: var(--landing-primary);
}

.l-auth-header p {
    color: #64748b;
    font-size: 13px;
    margin: 0;
}

.l-auth-group {
    margin-bottom: 10px;
    flex: 1;
}

.l-auth-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.l-captcha-wrapper {
    background: #f1f5f9;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    border-left: 4px solid #ef4444;
}

.success-message {
    background: #dcfce7;
    color: #166534;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    border-left: 4px solid #22c55e;
}

.l-auth-label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #475569;
    margin-bottom: 8px;
    margin-left: 4px;
}

.l-input-box {
    position: relative;
}

.l-input-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    z-index: 10;
    pointer-events: none;
    line-height: 1;
}

.l-auth-input {
    width: 100%;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    padding: 12px 16px 12px 48px !important;
    font-size: 16px!important;
    color: #1e293b;
    box-sizing: border-box;
    display: block;
    line-height: 1.6!important;
}

.l-auth-input::placeholder {
    color: #cbd5e1;
}

.l-auth-input:focus {
    border-color: var(--landing-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}

.l-password-eye {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
}

.l-auth-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--landing-primary), var(--landing-secondary));
    color: white;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 8px 16px -4px rgba(99, 102, 241, 0.4);
    margin-top: 5px;
}

.l-auth-btn-primary:hover {
    box-shadow: 0 15px 30px -8px rgba(99, 102, 241, 0.5);
    transform: translateY(0);
}

.l-auth-btn-primary:active {
    transform: translateY(0);
}

/* Specific Overrides for renderLoginForm within l-login-wrapper */
.l-login-wrapper .auth-container h1 {
    display: none; /* Hide old title */
}

.auth-container{
	max-width: 100%;
}

.l-login-wrapper .auth-container {
    padding: 0;
    /* margin: 0; */
}

.l-login-wrapper .auth-form {
    padding: 0;
    background: transparent;
    box-shadow: none;
    margin: 0;
}

.l-login-wrapper .form-group label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #475569;
    margin-bottom: 8px;
    margin-left: 4px;
}

.l-login-wrapper .form-group input {
    width: 100%;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 20px;
    padding: 16px 20px 16px 52px !important;
    font-size: 15px;
    border-radius: 12px;
    padding: 12px 16px 12px 48px !important;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    box-sizing: border-box;
}

.l-login-wrapper .form-group input:focus {
    border-color: var(--landing-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}

.l-login-wrapper .button-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--landing-primary), var(--landing-secondary)) !important;
    color: white !important;
    border: none !important;
    padding: 14px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    cursor: pointer;
    box-shadow: 0 8px 16px -4px rgba(99, 102, 241, 0.4) !important;
    margin-top: 5px;
}

.l-login-wrapper .auth-links {
    margin-top: 15px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 15px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.l-login-wrapper .auth-links a {
    color: var(--landing-primary);
    font-weight: 700;
    text-decoration: none;
}

/* Captcha overrides for landing */
.l-login-wrapper .captcha-container {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
}

.l-auth-view-fade {
    animation: lFadeIn 0.4s ease-out forwards;
}

@keyframes lFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Full Width Content */
.landing-content {
    padding: 0 20px 100px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.landing-section {
    background: white;
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.section-header .header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider-nav {
    display: flex;
    gap: 8px;
}

.slider-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.slider-nav button:hover {
    background: #f8fafc;
    color: var(--landing-primary);
    border-color: var(--landing-primary);
}

/* Tags Cloud Enhancement */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 25px;
}

.landing-tag {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    color: #475569;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.landing-tag::before {
    content: '#';
    color: var(--landing-primary);
    margin-right: 6px;
    font-weight: 800;
    opacity: 0.7;
}

.landing-tag:hover {
    background: #ffffff;
    color: var(--landing-primary);
    border-color: var(--landing-primary);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.1);
}

.landing-tag .tag-count {
    margin-left: 10px;
    background: #ffffff;
    color: #64748b;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-weight: 800;
}

.landing-tag:hover .tag-count {
    background: var(--landing-primary);
    color: #ffffff;
    border-color: var(--landing-primary);
}

/* Card Slider */
.card-slider-container {
    overflow-x: auto;
    display: flex;
    gap: 20px;
    padding: 10px 5px 25px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.card-slider-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.user-slider-card {
    flex: 0 0 280px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    scroll-snap-align: start;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.user-slider-avatar {
    width: 90px;
    height: 90px;
    border-radius: 28px;
    margin: 0 auto 16px;
    position: relative;
    padding: 4px;
    background: linear-gradient(135deg, var(--landing-primary), var(--landing-secondary));
}

.user-slider-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    background: white;
    border: 3px solid white;
}

.user-slider-name {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    margin-bottom: 8px;
}

.user-slider-stat {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.user-slider-stat i {
    color: #94a3b8;
}

/* Premium Features Grid */
.features-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card-premium {
    background: #f8fafc;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #edf2f7;
    text-align: left;
}

.feature-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 20px;
}

.feature-icon-wrapper.wiki { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.feature-icon-wrapper.chat { background: rgba(236, 72, 153, 0.1); color: #ec4899; }
.feature-icon-wrapper.network { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.feature-icon-wrapper.tools { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.feature-card-premium h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #0f172a;
}

.feature-card-premium p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Explore Grid */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.explore-item {
    background: white;
    padding: 20px 20px;
    border-radius: 20px;
    text-decoration: none;
    text-align: center;
    border: 1px solid #f1f5f9;
    box-shadow: var(--card-shadow);
}

.explore-item i {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.explore-item h3 {
    font-size: 1.2rem;
    font-weight: 800;
}

.explore-item p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.form-actions {
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 1200px) {
    .landing-wrapper .hero-content { 
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .hero-section { padding: 50px 15px; min-height: auto; }
    .l-auth-card { padding: 12px; }
    .landing-section { padding: 20px; overflow: hidden; }
    .explore-grid { grid-template-columns: 1fr; }
    .user-slider-card { flex: 0 0 260px; }
    
    .slider-nav { display: none; } /* Hide buttons on mobile as touch/swipe is used */

    /* Compact Tags Slider for Mobile - 3 Rows */
    .tags-cloud {
        display: grid;
        grid-template-rows: repeat(3, auto);
        grid-auto-flow: column;
        overflow-x: auto;
        margin: 15px -25px -5px;
        padding: 5px 25px 20px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        gap: 12px 10px; /* Vertical gap, Horizontal gap */
    }
    .tags-cloud::-webkit-scrollbar {
        display: none;
    }
    .landing-tag {
        flex: 0 0 auto;
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .l-auth-card { padding: 5px; }
}

