:root {
    --primary: #4f46e5;
    --secondary: #0f172a;
    --bg: #f8fafc;
    --border: #e2e8f0;
    --text: #334155;
    --light-text: #64748b;
    --white: #ffffff;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', system-ui, sans-serif; 
}

body { 
    background-color: var(--bg); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    padding: 20px; 
}



/* HEADER STYLE */

.page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: 0.3s ease;
}

/* --- Left Branding --- */
.left-column a {
    text-decoration: none;
}

.left-column h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Right Navigation --- */
.right-column {
    display: flex;
    gap: 20px;
    align-items: center;
}

.right-column span a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: #94a3b8;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

/* --- Hover Effects --- */
.right-column span a:hover {
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.2);
}



/* When "active" class is triggered on mobile, swap the visible form */
.container.active .login-box { 
    display: none; 
}

.container.active .signup-box { 
    display: flex; 
}

/* Hide desktop absolute slide overlay on mobile */
.overlay-cover { 
    display: none; 
} 

/* Stack the name/email/business rows vertically on mobile */
.form-row { 
    flex-direction: column; 
} 

.remember-forgot {
    font-size: .9rem;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    margin: -15px 0 15px;
}


/* Show "Already a vendor? Sign In" links on mobile */
.mobile-prompt { 
    display: block;
    margin-top: 15px; 
    text-align: center; 
    font-size: 0.9rem; 
    color: var(--light-text); 
}

.mobile-prompt span { 
    color: var(--primary); 
    font-weight: 600; 
    cursor: pointer; 
}

/* ----------------------
  SHARED TYPOGRAPHY & ELEMENTS
  ---------------------- */
h2 { 
    font-size: 2rem; 
    color: inherit; 
    margin-bottom: 5px; 
}

.auth-box h2 { 
    color: var(--secondary); 
}

.subtitle { 
    color: var(--light-text); 
    margin-bottom: 30px; 
    font-size: 0.95rem; 
}

.panel-left p, .panel-right p { 
    color: #cbd5e1; 
    margin-bottom: 20px; 
    font-size: 0.95rem; 
}

form { 
    width: 100%; 
}

.input-group { 
    flex: 1; 
    position: relative; 
    margin-bottom: 15px; 
}

.input-group i { 
    position: absolute; 
    left: 15px; 
    top: 50%; 
    transform: translateY(-50%); 
    color: var(--light-text); 
}

.input-group input, .input-group select {
    width: 100%; 
    padding: 12px; 
    border: 1px solid var(--border); 
    border-radius: 8px; 
    font-size: 0.95rem; 
    color: var(--text);
}

.input-group input:focus, .input-group select:focus { 
    border-color: var(--primary); 
    outline: none; 
}

/* Plan card elements */
h3 { 
    font-size: 1rem; 
    color: var(--secondary); 
    margin: 20px 0 10px 0; 
    text-align: left; 
}

.plan-selector { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 25px; 
}

.plan-option { 
    flex: 1; 
    cursor: pointer; 
}

.plan-option input { 
    display: none; 
}

.plan-card { 
    border: 1px solid var(--border); 
    padding: 15px; 
    border-radius: 8px; 
    text-align: center; 
    transition: 0.3s; 
    color: var(--secondary); 
}

.plan-title { 
    display: block; 
    font-weight: 600; 
}

.plan-price { 
    font-size: 0.85rem; 
    color: var(--light-text); 
}

.plan-option input:checked + .plan-card { 
    border-color: var(--primary); 
    background-color: rgba(79, 70, 229, 0.05); 
}

/* Buttons */
button { 
    cursor: pointer; 
    padding: 14px 25px; 
    border-radius: 8px; 
    border: none; 
    font-weight: 600; 
    font-size: 0.95rem; 
    transition: 0.3s; 
    width: 100%; 
}

.btn-primary { 
    background-color: var(--primary); 
    color: var(--white); 
}

.btn-secondary { 
    background-color: var(--secondary); 
    color: var(--white); 
}

.btn-ghost { 
    background-color: transparent; 
    border: 2px solid var(--white); 
    color: var(--white); 
    width: auto; 
}

button:hover { 
    opacity: 0.9; 
    transform: translateY(-1px); 
}

/* CSS Spinner Loader */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff; /* White moving edge */
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Optional: Slight opacity change when disabled */
button:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}



/**
** FAQ STYLES
**/

/* --- FAQ Section --- */
.faq {
    margin-top: 50px;
    padding-bottom: 50px;
}

.faq h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #10b981;
}

details {
    background-color:  rgba(79, 70, 229, 0.05);
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: 0.3s;
}

details[open] {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary);
}

summary::after {
    content: '\2b';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transition: 0.3s;
}

details[open] summary::after {
    content: '\2d';
    color: var(--primary);;
}

details p,
details ul {
    padding: 0 20px 20px 20px;
    color: #10b981;
    line-height: 1.6;
}

details ul {
    margin-left: 20px;
}

details a {
    color: #10b981;
    text-decoration: none;
    font-weight: bold;
}


/**
** FOOTER STYLES
**/
/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.05);
    color: #64748b;
}

footer .link {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

footer a:hover {
    color: var(--primary);
}


.custom-modal { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.6); 
    z-index: 1000; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.modal-content { 
    background: white; 
    padding: 30px; 
    border-radius: 16px; 
    width: 90%; 
    max-width: 400px; 
    position: relative; 
    text-align: center; 
}
.close-modal { 
    position: absolute; 
    top: 15px; 
    right: 20px; 
    font-size: 24px; 
    cursor: pointer; 
    color: #94a3b8; 
}



/* ----------------------
  MOBILE DEFAULT STYLES 
  (Screens under 768px)
  ---------------------- */
.auth-box {
    width: 100%;
    padding: 30px;
    display: none; /* Hide both by default on mobile */
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.4s ease-in-out;
}

/* Show only login box natively on mobile */
.auth-box.login-box { 
    display: flex; 
}

.main {
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    width: 100%;
}


/* MASTER CONTAINER */
.container{
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.05), 0 10px 10px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 650px;
    margin: 20% 0 20% 0;
}

.ass{
    display: flex; 
    align-items: center; 
    justify-content: space-evenly;
}


/* ----------------------
  DESKTOP STYLES 
  (Screens 768px and wider)
  ---------------------- */
@media screen and (min-width: 768px) {

    .form-row { 
        flex-direction: row; 
        display: flex; 
        gap: 15px; 
        width: 100%;
    }
    
    .mobile-prompt { 
        display: none; /* Hide the text links since buttons are visible on the overlay */
    } 
    
    .auth-box {
        position: absolute;
        top: 0;
        height: 100%;
        width: 50%; /* Each form takes half the container */
        padding: 50px;
        display: flex; /* Always display both on desktop */
        transition: all 0.6s ease-in-out;
    }

    .login-box { 
        left: 0; 
        z-index: 2; 
        opacity: 1; 
    }
    
    .signup-box { 
        left: 0; 
        opacity: 0; 
        z-index: 1; 
    }

    .container{
        margin: 20% 0 20% 0;
    }
    
    /* DESKTOP MOVEMENT ON ACTIVE SLIDE */
    .container.active .login-box { 
        transform: translateY(100%); 
        opacity: 0; 
        z-index: 1; 
    }
    
    .container.active .signup-box { 
        transform: translateX(100%); 
        opacity: 1; 
        z-index: 5; 
    }

    /* OVERLAY SETUP (Desktop Only) */
    .overlay-cover {
        display: block;
        position: absolute;
        top: 0;
        left: 50%;
        width: 50%;
        height: 100%;
        overflow: hidden;
        transition: transform 0.6s ease-in-out;
        z-index: 100;
        background-color: var(--secondary);
        color: var(--white);
    }

    .container.active .overlay-cover { 
        transform: translateX(-100%); 
    }

    .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: 100%;
        transition: transform 0.6s ease-in-out;
    }

    .panel-left { 
        transform: translateX(-100%); 
    }
    
    .container.active .panel-left { 
        transform: translateX(0); 
    }

    .panel-right { 
        transform: translateX(0); 
    }
    
    .container.active .panel-right { 
        transform: translateX(100%); 
    }

}   