/* ===== LOGIN / REGISTER PAGE ===== */
.index-page { overflow: hidden !important; }
.index-page * { margin: 0; padding: 0; box-sizing: border-box; }
.index-page body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f7fa;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: block !important;
}
.index-page .container {
    display: flex !important;
    width: 100% !important;
    height: 100vh !important;
    overflow: hidden !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}
.index-page .left-panel {
    flex: 1 1 auto !important;
    position: relative !important;
    display: block !important;
    background-color: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 0 !important;
}
.index-page .left-panel img {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    margin: 0 !important;
    padding: 0 !important;
}
.index-page .right-panel {
    width: 480px !important;
    min-width: 480px !important;
    flex: 0 0 480px !important;
    background-color: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 60px 50px !important;
    box-shadow: -4px 0 20px rgba(0,0,0,0.05) !important;
    font-family: 'Roboto', sans-serif !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}
.index-page .logo { font-size: 2em; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.index-page .logo span { color: #4f46e5; }
.index-page .subtitle { color: #6b7280; font-size: 1em; margin-bottom: 40px; }
.index-page .tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    background-color: #f3f4f6;
    border-radius: 12px;
    padding: 4px;
}
.index-page .tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}
.index-page .tab.active {
    background-color: #ffffff;
    color: #1a1a2e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.index-page .tab:hover:not(.active) { color: #4f46e5; }
.index-page .form-wrapper { position: relative; height: 360px; }
.index-page .form-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.index-page .form-container.active { opacity: 1; visibility: visible; }
.index-page .form-group { margin-bottom: 20px; }
.index-page .form-group label { display: block; font-size: 0.93em; font-weight: 600; color: #374151; margin-bottom: 8px; }
.index-page .form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}
.index-page .form-group input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79,70,229,0.1);
}
.index-page .form-group input::placeholder { color: #9ca3af; }
.index-page .btn-submit {
    width: 100%;
    padding: 16px;
    background-color: #4f46e5;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.07em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'Roboto', sans-serif;
    margin-top: 10px;
}
.index-page .btn-submit:hover { background-color: #4338ca; transform: translateY(-1px); }
.index-page .error-msg {
    display: none;
    background-color: #fee2e2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.93em;
    margin-bottom: 16px;
    text-align: center;
}
.index-page .error-msg.show { display: block; }

.index-page .popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0,0,0,0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s, visibility 0.3s !important;
}
.index-page .popup-overlay.open {
    opacity: 1 !important;
    visibility: visible !important;
}
.index-page .popup {
    background-color: #ffffff !important;
    border-radius: 16px !important;
    padding: 30px !important;
    width: 360px !important;
    max-width: 92vw !important;
    text-align: center !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2) !important;
    color: #1a1a2e !important;
    font-family: 'Roboto', sans-serif !important;
}
.index-page .popup h3 { font-size: 1.43em; font-weight: 700; margin-bottom: 12px; color: #1a1a2e; }
.index-page .popup p { color: #6b7280; font-size: 1em; margin-bottom: 20px; }
.index-page .popup-btn {
    width: 100% !important;
    padding: 14px !important;
    background-color: #4f46e5 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 1.07em !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-family: 'Roboto', sans-serif !important;
}
.index-page .popup-btn:hover { background-color: #4338ca !important; }
.index-page .popup-cancel {
    margin-top: 10px !important;
    background: none !important;
    border: none !important;
    color: #6b7280 !important;
    font-size: 0.93em !important;
    cursor: pointer !important;
}

@media (max-width: 900px) {
    .index-page .container { flex-direction: column !important; position: static !important; }
    .index-page .left-panel { display: none !important; }
    .index-page .right-panel { width: 100% !important; min-width: unset !important; flex: 1 1 auto !important; height: auto !important; max-height: none !important; padding: 40px 30px !important; }
    .index-page .form-wrapper { height: auto; min-height: 360px; }
}

/* ===== INDEX PAGE LOADER ===== */
.index-loader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 35%, #6d28d9 70%, #be185d 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.6s, visibility 0.6s;
    overflow: hidden;
}
.index-loader.hide { opacity: 0; visibility: hidden; }

#circlesCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.index-loader-text {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 500;
    z-index: 2;
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
    letter-spacing: 3px;
    animation: pulseText 2s ease-in-out infinite;
}
@keyframes pulseText {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.index-loader-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}
.index-loader-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: dotBounce 1.2s infinite ease-in-out;
}
.index-loader-dot:nth-child(1) { animation-delay: 0s; }
.index-loader-dot:nth-child(2) { animation-delay: 0.15s; }
.index-loader-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.5); opacity: 0.3; }
    40% { transform: scale(1.2); opacity: 1; }
}

@media (max-width: 480px) {
    .index-loader-text { font-size: 14px; bottom: 40px; letter-spacing: 2px; }
    .index-loader-dots { bottom: 18px; gap: 8px; }
    .index-loader-dot { width: 6px; height: 6px; }
}
