/* Login Page - Neon/Stock-Trader Dark Theme */

/* ===== LAYOUT ===== */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

.login-split-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ===== LEFT PANEL - LOGIN FORM ===== */
.login-panel {
    flex: 0 0 45%;
    max-width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(15, 15, 15, 0.95) 100%);
}

.login-content {
    width: 100%;
    max-width: 400px;
    text-align: center; /* Center all content */
}

/* Logo - Centered */
.login-logo-link {
    display: inline-block;
    margin-bottom: 2rem;
}

.login-logo {
    height: 44px;
    width: auto;
    transition: opacity 0.2s ease;
}

.login-logo-link:hover .login-logo {
    opacity: 0.85;
}

/* Header - Centered */
.login-header {
    margin-bottom: 1.75rem;
    text-align: center;
}

.login-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--tgn-text-primary);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
}

.login-header p {
    font-size: 0.95rem;
    color: var(--tgn-text-secondary);
    margin: 0;
}

/* Google Button */
.google-btn {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--tgn-text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.google-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.google-btn:active {
    transform: translateY(0);
}

.google-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.divider span {
    position: relative;
    display: inline-block;
    padding: 0 1rem;
    background: rgba(10, 10, 10, 0.98);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Form Styles - Left aligned for inputs */
#login-form {
    text-align: left;
}

.form-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--tgn-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1), 0 0 20px rgba(16, 185, 129, 0.1);
    outline: none;
}

/* Forgot Password */
.forgot-link {
    font-size: 0.85rem;
    color: var(--tgn-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: var(--tgn-primary);
}

/* Toggle Form Link */
.toggle-form {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--tgn-text-secondary);
    font-size: 0.9rem;
}

.toggle-form a {
    color: var(--tgn-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.toggle-form a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* Alert Messages */
.alert {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: left;
}

.alert-danger {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--tgn-primary);
}

.alert-info {
    background: rgba(0, 204, 255, 0.1);
    border: 1px solid rgba(0, 204, 255, 0.3);
    color: #00ccff;
}

/* ===== RIGHT PANEL - FEATURE SHOWCASE ===== */
.feature-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg,
        rgba(10, 10, 10, 1) 0%,
        rgba(5, 25, 20, 1) 50%,
        rgba(10, 10, 10, 1) 100%);
}

.feature-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 4rem 3rem 2rem;
}

/* Grid Overlay - Stock Trader Effect */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Glow Accent Lines */
.feature-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--tgn-primary) 20%,
        var(--tgn-primary) 80%,
        transparent 100%);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5),
                0 0 60px rgba(16, 185, 129, 0.3);
    animation: glowLine 3s ease-in-out infinite;
}

@keyframes glowLine {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Feature Showcase */
.feature-showcase {
    max-width: 520px;
    width: 100%;
    text-align: center;
}

/* Total Network Reach - Hero Stat */
.reach-display {
    text-align: center;
    padding: 1.75rem 1.5rem 1.25rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.reach-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--tgn-primary), transparent);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

/* Live Indicator - Now inside the reach box, centered at top */
.live-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--tgn-primary);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--tgn-primary);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px var(--tgn-primary);
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.reach-value {
    margin-bottom: 0.5rem;
}

.reach-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--tgn-text-primary);
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    letter-spacing: -2px;
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.reach-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--tgn-text-secondary);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Pro Tip - Compact, integrated inside reach box */
.pro-tip {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 8px;
    margin-top: 0.75rem;
    text-align: left;
}

.pro-tip svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--tgn-primary);
    opacity: 0.8;
}

.pro-tip span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Activity Section */
.activity-section {
    margin-top: 0.5rem;
    width: 100%;
}

.activity-header {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--tgn-text-secondary);
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-align: center;
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.875rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    opacity: 0;
    transform: translateX(-10px);
    animation: slideIn 0.8s ease forwards;
}

/* Slower staggered animation */
.activity-item:nth-child(1) { animation-delay: 0.3s; }
.activity-item:nth-child(2) { animation-delay: 0.5s; }
.activity-item:nth-child(3) { animation-delay: 0.7s; }
.activity-item:nth-child(4) { animation-delay: 0.9s; }
.activity-item:nth-child(5) { animation-delay: 1.1s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Streaming activity animations */
.activity-item.fade-in {
    opacity: 0;
    transform: translateY(-10px);
    animation: activityFadeIn 0.5s ease-out forwards !important;
    animation-delay: 0s !important;
}

.activity-item.fade-out {
    animation: activityFadeOut 0.4s ease-out forwards !important;
}

@keyframes activityFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes activityFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

.activity-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    color: var(--tgn-primary);
    flex-shrink: 0;
}

/* Colored icon variants */
.activity-icon.revenue {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.activity-icon.match {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.2);
    color: #ec4899;
}

.activity-icon.partnership {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
    color: #6366f1;
}

.activity-icon.member {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
}

.activity-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--tgn-text-primary);
    text-align: left;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--tgn-text-tertiary);
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .feature-content {
        padding: 2rem;
    }
}

@media (max-width: 992px) {
    .login-split-container {
        flex-direction: column;
    }

    .login-panel {
        flex: none;
        max-width: 100%;
        padding: 2rem 1.5rem;
        order: 1;
    }

    .feature-panel {
        display: none; /* Hide on mobile for cleaner experience */
    }

    .login-content {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .login-panel {
        padding: 1.5rem 1rem;
    }

    .login-header h1 {
        font-size: 1.5rem;
    }

    .login-logo {
        height: 36px;
    }
}

/* Scanline effect for extra stock-trader vibe */
.feature-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 0, 0, 0.02) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 3;
}

/*
==========================================================================
FUTURE STYLES - Uncomment when needed

.stats-display { ... }
.stat-card { ... }
.feature-quote { ... }
==========================================================================
*/
