/* === BASE STYLES === */
:root {
    --space-blue: #0a0e23;
    --deep-space: #050716;
    --neon-blue: #00f0ff;
    --purple: #7b2dff;
    --pink: #ff2d7b;
    --input-bg: rgba(0, 0, 0, 0.4);
    --input-border: rgba(0, 240, 255, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--deep-space);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* === HEADER === */
header {
    background-color: rgba(17, 17, 17, 1);
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
}

.header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    width: 100%;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
    pointer-events: none;
}

.logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 8px var(--accent));
    transition: transform 0.3s;
}

.logo:hover img {
    transform: rotate(5deg);
}

.logo-text h1 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
}

.logo-text p {
    margin: 3px 0 0;
    font-size: 0.9rem;
    color: var(--accent);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
}

nav ul li a:hover {
    color: var(--accent);
    text-shadow: var(--neon-glow);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    box-shadow: var(--neon-glow);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

@media (max-width: 1400px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .logo img {
        height: 50px;
    }

    .hero h2 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .btn {
        padding: 14px 28px;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .feature-card {
        padding: 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.menu-toggle,
.menu_toggle_inNav {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 0;
    position: absolute;
    top: 20px;
    right: 20px;
}

.menu_toggle_inNav {
    color: black !important;
}

@media (max-width: 990px) {

    .menu-toggle,
    .menu_toggle_inNav {
        display: block;
    }

    header {
        position: sticky !important;
    }

    .header-content {
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
    }

    .header-content nav {
        transform: translate(100%, 0%);
        width: 100%;
        height: 100vh;
        max-width: 400px;
        background-color: white;
        color: black !important;
        position: absolute;
        top: 0;
        right: 0px;
        transition: transform 0.3s ease, opacity 0.3s ease 0.1s;
        display: none;
        opacity: 0;
    }
    
    .header-content nav.active {
        opacity: 1;
        display: block;
        transform: translate(0%, 0%);
    }

    nav ul {
        gap: 25px;
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        align-items: center;
        height: 100%;
        width: 100%;
    }

    nav ul li a {
        color: #000;
        text-decoration: none;
        font-weight: 500;
        font-size: 1rem;
        transition: all 0.3s;
        position: relative;
        padding: 5px 0;
        white-space: nowrap;
    }

}

/* === MAIN CONTENT === */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 1rem;
}

/* === AUTH CONTAINER === */
.auth-container {
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    background: rgba(10, 14, 35, 0.9);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
    backdrop-filter: blur(5px);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    position: relative;
}

/* FORM PANELS */
.form-panel {
    width: 50%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    transition: all 0.6s ease-in-out;
    position: relative;
    z-index: 2;
    height: inherit;
    max-height: 100%;
    overflow-y: scroll;
    align-items: center;
}

.sign-up-panel::-webkit-scrollbar,
.sign-in-panel::-webkit-scrollbar {
    width: 10px;
    background-color: transparent;
}

.sign-up-panel::-webkit-scrollbar-thumb,
.sign-in-panel::-webkit-scrollbar-thumb {
    background-color: #6a6a6a;
    border-radius: 25px;
}

.sign-in-panel {
    background: rgba(10, 14, 35, 0.9);
    justify-content: center;
    transform: translateX(200%);
}

.sign-up-panel {
    background: rgba(10, 14, 35, 0.9);
    position: absolute;
    right: 0;
    transform: translateX(-100%);
    justify-content: flex-start;
}

/* ACTIVE STATE */
.auth-container.active .sign-in-panel {
    transform: translateX(100%);
}

.auth-container.active .sign-up-panel {
    transform: translateX(-200%);
}

/* FORM GRID LAYOUT */
.form-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.double-column {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .full-width {
        grid-column: span 2;
    }
}

/* FORM STYLES */
.form-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.1rem;
    background: linear-gradient(90deg, var(--neon-blue), var(--purple));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100% !important;
}

label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--neon-blue);
    font-size: 0.9rem;
}

input,
select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    background: var(--input-bg);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.form-btn {
    margin-top: 10px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, var(--purple), var(--pink));
    border: none;
    border-radius: 6px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 45, 255, 0.3);
}

.opp-form-btn {
    position: relative;
    width: fit-content;
    padding: 5px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--neon-blue);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    display: none;
}

.opp-form-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--neon-blue);
    transition: width 0.3s ease;
}

.opp-form-btn:hover::after {
    width: 100%;
}

.opp-form-btn:hover {
    color: white;
}

/* TOGGLE PANEL */
.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(123, 45, 255, 0.8), rgba(255, 45, 123, 0.6));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 3rem;
    text-align: center;
    transition: all 0.6s ease-in-out;
    z-index: 1;
    left: 50%;
}

.auth-container.active .toggle-panel {
    left: 0;
}

.toggle-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.toggle-text {
    margin-bottom: 2rem;
    line-height: 1.5;
}

.toggle-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 30px;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn:hover {
    background: white;
    color: var(--purple);
}

/* EXPLOSION EFFECT */
#explosion {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 200, 0, 0.9), rgba(255, 100, 0, 0.7), transparent 70%);
    box-shadow: 0 0 100px 50px rgba(255, 200, 0, 0.6);
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: all 1s ease-out;
}

#explosion.active {
    width: 2000px;
    height: 2000px;
    opacity: 1;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .form-panel,
    .sign-up-panel {
        width: 100%;
        padding: 2rem;
    }

    .auth-container {
        max-width: 550px;
    }

    .sign-up-panel {
        position: relative;
        transform: translateX(0);
        display: flex;
    }
    
    .sign-in-panel {
        position: relative;
        transform: translateX(0);
        display: none;
    }

    .auth-container.active .sign-in-panel {
        display: flex;
        transform: translateX(0);
    }

    .auth-container.active .sign-up-panel {
        display: none;
        transform: translateX(0);
    }

    .toggle-panel {
        display: none;
    }

    .opp-form-btn {
        display: block;
    }

    .full-width {
        grid-column: span 1;
    }
}

:root {
    --accent: #ff9e1b;
    --neon-glow: 0 0 10px rgba(255, 158, 27, 0.8), 0 0 20px rgba(255, 158, 27, 0.6);
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s, visibility 1s;
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
    filter: drop-shadow(0 0 15px rgba(255, 158, 27, 0.7));
}

.loading-text {
    color: var(--accent);
    font-size: 1.8rem;
    text-shadow: var(--neon-glow);
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-family: 'Orbitron', 'Segoe UI', sans-serif !important;
    text-align: center;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--accent), #ff6b1b);
    box-shadow: var(--neon-glow);
    animation: loadProgress 2s forwards;
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}