/* --- Auth Specific Styles --- */
/* Reuse variables from root in style.css, but define local overrides if needed */

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 1, 10, 0.85);
    /* Slightly darker for focus */
    z-index: -1;
}

.auth-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
}

.auth-nav .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.nav-btn-back {
    color: var(--white);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.nav-btn-back:hover {
    border-color: var(--logo-purple);
    color: var(--logo-purple);
    background: rgba(188, 19, 254, 0.1);
}

/* Auth Container */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-box {
    background: rgba(20, 10, 30, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25),
        0 10px 10px rgba(0, 0, 0, 0.22),
        0 0 20px rgba(188, 19, 254, 0.2);
    /* Neon glow */
    position: relative;
    overflow: hidden;
    width: 900px;
    /* Wider for potential split screen */
    max-width: 100%;
    min-height: 600px;
    border: 1px solid rgba(188, 19, 254, 0.3);
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sign In / Sign Up Specifics */
.sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

/* Active State for Sliding Panel logic */
.auth-box.right-panel-active .sign-in-container {
    transform: translateX(100%);
}

.auth-box.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

@keyframes show {

    0%,
    49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%,
    100% {
        opacity: 1;
        z-index: 5;
    }
}

/* Form Styling */
form {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-align: center;
    color: var(--white);
}

.orbitron-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    margin-bottom: 20px;
    font-size: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 0 0 10px var(--logo-purple);
}

.social-container {
    margin: 20px 0;
}

.social {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    height: 40px;
    width: 40px;
    color: var(--white);
    text-decoration: none;
    transition: 0.3s;
}

.social:hover {
    border-color: var(--logo-purple);
    background: var(--logo-purple);
    box-shadow: 0 0 10px var(--logo-purple);
}

form span {
    font-size: 12px;
    margin-bottom: 20px;
    color: var(--text-gray);
    font-family: 'Rajdhani', sans-serif;
}

input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    margin: 8px 0;
    width: 100%;
    border-radius: 5px;
    color: var(--white);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--logo-purple);
    background: rgba(188, 19, 254, 0.1);
    box-shadow: 0 0 10px rgba(188, 19, 254, 0.2);
}

.auth-btn {
    border-radius: 20px;
    border: 1px solid var(--logo-purple);
    background-color: var(--logo-purple);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in, box-shadow 0.3s;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    margin-top: 20px;
}

.auth-btn:hover {
    box-shadow: 0 0 15px var(--logo-purple);
    transform: scale(1.05);
}

.auth-btn:active {
    transform: scale(0.95);
}

.auth-btn:focus {
    outline: none;
}

.ghost {
    background-color: transparent;
    border-color: #ffffff;
    box-shadow: none;
    /* No glow initially for ghost button */
}

.ghost:hover {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.forgot-password {
    color: var(--text-gray);
    font-size: 14px;
    text-decoration: none;
    margin: 15px 0;
    transition: 0.3s;
    font-family: 'Rajdhani', sans-serif;
}

.forgot-password:hover {
    color: var(--logo-purple);
    text-decoration: underline;
}

/* Overlay Panel for Transition */
.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    /* Starts at 50% for desktop split */
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.auth-box.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.overlay {
    background: linear-gradient(to right, #240046, #6a0dad);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #ffffff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.auth-box.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-panel p {
    font-size: 16px;
    /* Increased font size for readability */
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 0.5px;
    margin: 20px 0 30px;
    font-family: 'Rajdhani', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    /* Brighter white */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* Subtle shadow for depth */
}

/* Ensure headings in overlay match the Orbitron style */
.overlay-panel h1 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.overlay-left {
    transform: translateX(-20%);
}

.auth-box.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.auth-box.right-panel-active .overlay-right {
    transform: translateX(20%);
}

.mobile-toggle-text {
    display: none;
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-gray);
}

.mobile-toggle-text a {
    color: var(--logo-purple);
    font-weight: bold;
    text-decoration: none;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .auth-box {
        width: 100%;
        max-width: 400px;
        min-height: 500px;
        /* Smaller height on mobile */
        border-radius: 10px;
    }

    /* Hide the sliding overlay on mobile */
    .overlay-container {
        display: none;
    }

    /* Stack containers on top of each other */
    .form-container {
        width: 100%;
        position: relative;
        /* Change from absolute to relative */
        padding: 30px 20px;
    }

    .sign-in-container {
        display: flex;
        /* Default show */
    }

    .sign-up-container {
        display: none;
        /* Default hide */
        opacity: 1;
        /* Reset opacity since animation isn't needed here same way */
        z-index: 5;
    }

    /* Toggle logic for mobile via JS classes */
    .auth-box.mobile-active .sign-in-container {
        display: none;
    }

    .auth-box.mobile-active .sign-up-container {
        display: flex;
    }

    .mobile-toggle-text {
        display: block;
    }

    .auth-nav .nav-container {
        padding: 0 20px;
    }
}