/* V3 PRO Login Page Specific Styles */
body.login-page-v3 {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    font-family: 'Inter', sans-serif;
    background: #050811;
    color: #fff;
}

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

.login-left {
    flex: 1.5;
    background: radial-gradient(circle at top left, rgba(0, 229, 163, 0.05) 0%, transparent 40%),
                radial-gradient(circle at bottom right, rgba(0, 212, 255, 0.05) 0%, transparent 40%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

/* Subtle grid background on left */
.login-left::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.login-left-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 229, 163, 0.1);
    color: #00e5a3;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(0, 229, 163, 0.2);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}
.pro-badge:hover {
    background: rgba(0, 229, 163, 0.2);
    box-shadow: 0 0 15px rgba(0, 229, 163, 0.3);
}

.login-left-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.login-left-content h1 span {
    color: #00e5a3;
}

.login-left-content p.subtitle {
    font-size: 1.1rem;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 500px;
}

.features-grid {
    display: flex;
    gap: 1.5rem;
}

.feature-card {
    background: #111827;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 1.5rem;
    flex: 1;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 163, 0.2);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #00e5a3;
    font-size: 1.2rem;
}

.feature-card h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.feature-card p {
    color: #6b7280;
    font-size: 0.8rem;
    margin: 0;
}

.login-right {
    flex: 1;
    max-width: 550px;
    background: #050811;
    display: block; /* Changed from flex to block to allow safe scrolling */
    padding: 2rem;
    border-left: 1px solid rgba(255,255,255,0.05);
    overflow-y: auto;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-logo-box {
    width: 48px;
    height: 48px;
    background: #00e5a3;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 229, 163, 0.3);
}

.login-form-container h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.login-form-container p.form-subtitle {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.login-tabs-v3 {
    display: flex;
    background: #111827;
    border-radius: 100px;
    padding: 4px;
    margin-bottom: 2rem;
}

.login-tab-v3 {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    background: transparent;
}

.login-tab-v3.active {
    background: #00e5a3;
    color: #000;
    box-shadow: 0 4px 10px rgba(0, 229, 163, 0.2);
}

.form-group-v3 {
    margin-bottom: 1.5rem;
}

.form-label-v3 {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: #6b7280;
    font-size: 1.1rem;
    pointer-events: none;
}

.input-v3 {
    width: 100%;
    background: #111827;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    height: 52px;
    padding: 0 1rem 0 2.8rem;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-v3:focus {
    outline: none;
    border-color: #00e5a3;
    box-shadow: 0 0 0 3px rgba(0, 229, 163, 0.1);
}

.btn-neon {
    width: 100%;
    height: 52px;
    background: #00e5a3;
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-neon:hover {
    background: #00ffb7;
    box-shadow: 0 0 20px rgba(0, 229, 163, 0.4);
    transform: translateY(-2px);
}

.secure-badge {
    text-align: center;
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.7rem;
    color: rgba(0, 229, 163, 0.6);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Modals & Helpers */
.login-form-wrapper {
    display: none;
}
.login-form-wrapper.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

@keyframes spin {
    100% { transform: rotate(360deg); }
}
.spinner {
    animation: spin 1s linear infinite;
}

.form-row {
    display: flex;
    gap: 10px;
}

@media (max-width: 900px) {
    .login-split {
        flex-direction: column;
    }
    .login-left {
        padding: 2.5rem 1.5rem;
        flex: auto;
        justify-content: flex-start;
    }
    .login-left-content h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    .login-left-content p.subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    .pro-badge {
        margin-bottom: 1rem;
    }
    .login-right {
        max-width: 100%;
        padding: 2rem 1.5rem;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    body.login-page-v3 {
        height: auto;
        overflow-y: auto;
    }
    .features-grid {
        flex-direction: column;
        gap: 1rem;
    }
    .feature-card {
        padding: 1rem;
    }
    .feature-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .login-form-container h2 {
        font-size: 1.6rem;
    }
    .login-tabs-v3 {
        margin-bottom: 1.5rem;
    }
    .login-tab-v3 {
        padding: 10px;
        font-size: 0.75rem;
    }
    .input-v3, .btn-neon {
        height: 48px;
    }
    .progress-container {
        margin-bottom: 20px;
    }
    #registerForm .form-group-v3 {
        margin-bottom: 1rem;
    }
}

/* Register form compactness to fit 100% screen */
#registerForm .form-group-v3 {
    margin-bottom: 0.8rem;
}
#registerForm .input-v3 {
    height: 48px;
}
#registerForm .form-label-v3 {
    margin-bottom: 0.3rem;
}
#registerForm .btn-neon {
    height: 48px;
    margin-top: 0.5rem;
}
