/* ============================================================
   NEW LOGIN & SIGN UP CUSTOM STYLES — Premium Glassmorphic UI
   ============================================================ */

/* ── Centering Wrapper ── */
#auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 100px 20px 60px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* ── Premium Glassmorphic Card Container ── */
#container {
    background: rgba(10, 10, 18, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 
                inset 0 0 20px rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
    width: 950px;
    max-width: 100%;
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.95fr;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ── Form Layout Side ── */
.form-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Forms container holding login & signup forms stack */
.forms-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 650px;
}

.sign-in-container,
.sign-up-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 60px;
    box-sizing: border-box;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Content Opacities & Transforms based on Active State ── */
/* Login Mode (Default) */
.sign-in-container {
    opacity: 1;
    z-index: 2;
    transform: translateX(0);
    pointer-events: auto;
}

.sign-up-container {
    opacity: 0;
    z-index: 1;
    transform: translateX(-30px);
    pointer-events: none;
}

/* Sign Up Mode (Active) */
#container.right-panel-active .sign-in-container {
    opacity: 0;
    z-index: 1;
    transform: translateX(30px);
    pointer-events: none;
}

#container.right-panel-active .sign-up-container {
    opacity: 1;
    z-index: 2;
    transform: translateX(0);
    pointer-events: auto;
}

/* ── Premium Forms ── */
form {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

form h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: left;
}

form span {
    font-size: 0.9rem;
    color: #8a8a9e;
    margin-bottom: 24px;
    text-align: left;
}

/* ── Modern Glow Inputs ── */
.infield {
    position: relative;
    margin-bottom: 18px;
    width: 100%;
}

.infield input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
    width: 100%;
    box-sizing: border-box;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.infield input::placeholder {
    color: #555566;
}

.infield input:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.infield input:focus {
    background: rgba(255, 255, 255, 0.04);
    border-color: #00e5ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2), 
                inset 0 0 8px rgba(0, 229, 255, 0.05);
}

/* Form Helper Options */
.forgot {
    color: #00e5ff;
    font-size: 0.85rem;
    text-align: right;
    margin-top: -6px;
    margin-bottom: 24px;
    text-decoration: none;
    transition: 0.3s;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
}

.forgot:hover {
    color: #00b0ff;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

/* ── Cyber Action Buttons ── */
button {
    font-family: 'Space Grotesk', sans-serif;
    border-radius: 14px;
    border: 1px solid #00e5ff;
    background: linear-gradient(135deg, #00e5ff 0%, #00b0ff 100%);
    color: #000000;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 16px 30px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.45);
    border-color: #00e5ff;
}

button:active {
    transform: scale(0.98) translateY(0);
}

button.ghost {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: none;
    padding: 12px 36px;
    border-radius: 50px;
    font-size: 0.85rem;
}

button.ghost:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* ── Social Media Container ── */
.social-container {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.social-container a {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-size: 1.1rem;
    text-decoration: none;
}

.social-container a:hover {
    background: rgba(0, 229, 255, 0.08);
    border-color: #00e5ff;
    color: #00e5ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
    transform: translateY(-2px);
}

/* ── Interactive Right Showcase Pane ── */
.overlay-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.overlay {
    position: relative;
    width: 100%;
    height: 100%;
}

.overlay-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 50px;
    box-sizing: border-box;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Toggle displays for showcase elements */
.overlay-left {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    z-index: 1;
}

.overlay-right {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 2;
}

/* Showcase Toggle states based on Active status */
#container.right-panel-active .overlay-left {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 2;
}

#container.right-panel-active .overlay-right {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    z-index: 1;
}

.overlay-panel h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 15px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #b0b0bb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.overlay-panel p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #8a8a9e;
    margin: 0 0 25px 0;
    max-width: 280px;
}

/* ── Mobile Layout ── */
.mobile-switch {
    display: none;
}

@media (max-width: 768px) {
    #auth-section {
        padding: 90px 16px 60px;
        align-items: center;
    }

    #container {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 24px;
        background: rgba(10, 10, 18, 0.8);
    }

    .overlay-container {
        display: none !important; /* Hide showcase side on mobile screen */
    }

    .sign-in-container,
    .sign-up-container {
        position: relative;
        padding: 40px 24px;
        height: auto;
        min-height: auto;
        width: 100%;
        transform: none !important;
        transition: none !important;
    }

    /* Handle Toggle display directly */
    .sign-up-container {
        display: none;
    }

    .sign-in-container {
        display: flex;
    }

    #container.right-panel-active .sign-up-container {
        display: flex;
    }

    #container.right-panel-active .sign-in-container {
        display: none;
    }

    /* Show Mobile Text switch triggers */
    .mobile-switch {
        display: block;
        margin-top: 24px;
        color: #8a8a9e;
        font-size: 0.9rem;
        text-align: center;
    }

    .mobile-switch a {
        color: #00e5ff;
        font-weight: 600;
        text-decoration: none;
        margin-left: 6px;
        transition: color 0.3s;
    }

    .mobile-switch a:hover {
        color: #00b0ff;
    }
}

/* ── Account Chooser Modal (Mock Social Login) ── */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content.glass-card {
    background: rgba(15, 15, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 35px 30px;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(0, 229, 255, 0.05);
    color: #ffffff;
    animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #ffffff;
}

.modal-content p {
    font-size: 0.9rem;
    color: #8a8a9e;
    margin: 0 0 24px 0;
}

.account-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.account-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.account-item:hover {
    background: rgba(0, 229, 255, 0.06);
    border-color: #00e5ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.1);
}

.avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #00e5ff 0%, #bd00ff 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.acc-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.acc-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

.acc-email {
    font-size: 0.8rem;
    color: #8a8a9e;
}

.modal-close {
    width: 100%;
    margin-top: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #8a8a9e;
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    box-shadow: none;
    transform: translateY(-2px);
}
