/* B2B Auth Styles (Login, Register, Forgot Password) */

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    background-color: #f9fafb;
    overflow: hidden; /* Or auto, depending on page */
}

/* Layout */
.split-layout {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    background: white;
    position: relative;
}

.left-side {
    display: none;
    width: 50%;
    background-color: #020617;
    color: white;
    padding: 4rem;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    height: 100vh;
}

.right-side {
    display: flex; /* Sign-in/Forgot default */
    width: 100%;
    height: 100vh;
    align-items: center;
    justify-content: center;
    background-color: #f9fafb;
    overflow-y: auto;
}

/* Sign-up override for right-side alignment */
.right-side.scrollable {
    display: block;
    align-items: unset;
    justify-content: unset;
}

@media (min-width: 1024px) {
    .left-side {
        display: flex;
    }
    .right-side {
        width: 50%;
    }
}

/* Cards & Wrappers */
.login-wrapper {
    width: 100%;
    max-width: 600px; /* Sign-up width */
    margin: 0 auto;
    padding: 2rem;
}
/* Center login wrapper vertically if needed */
.right-side:not(.scrollable) .login-wrapper {
    max-width: 440px;
}

/* Sign-Up Login Wrapper override */
.right-side.scrollable .login-wrapper {
     max-width: 600px;
     margin-top: 4rem;
     padding-bottom: 4rem;
}
@media (min-width: 1024px) { 
    .right-side.scrollable .login-wrapper { margin-top: 6rem; }
}


.login-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

/* Features (Left Side) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 0.75rem;
    backdrop-filter: blur(4px);
}

/* Form Controls */
.bs-control-group {
    margin-bottom: 1rem;
}

.bs-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 0.375rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bs-input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.bs-input:focus {
    outline: 2px solid #2563eb;
    border-color: #2563eb;
}

/* Grid System */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-full-width {
    grid-column: span 2;
}

/* Buttons */
.bs-btn-primary {
    width: 100%;
    border-radius: 0.5rem;
    background-color: #1e293b;
    color: white;
    font-weight: 700;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

.bs-btn-primary:hover {
    background-color: #0f172a;
}

.bs-btn-secondary {
    width: 100%;
    border-radius: 0.5rem;
    background-color: white;
    color: #1f2937;
    font-weight: 700;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    transition: background-color 0.2s;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

.bs-btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

/* Step Wizard */
.step-hidden { display: none; }
.step-indicators { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; }
.step-item { display: flex; align-items: center; gap: 0.5rem; opacity: 0.5; transition: opacity 0.3s; flex-direction: column; align-items: center; text-align: center; }
.step-active { opacity: 1; }
.step-circle { width: 2.5rem; height: 2.5rem; border-radius: 50%; background-color: #e5e7eb; color: #6b7280; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1rem; }
.step-active .step-circle { background-color: #1e293b; color: white; }
.step-label { font-size: 0.75rem; font-weight: 600; color: #374151; margin-top: 0.25rem; }

/* Custom Multi-Select */
.custom-multiselect { position: relative; }
.select-trigger { width: 100%; padding: 0.75rem 1rem; border: 1px solid #e5e7eb; border-radius: 0.5rem; background: #fff; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; min-height: 46px; user-select: none; }
.select-trigger:after { content: '\25BC'; font-size: 0.7rem; color: #9ca3af; }
.select-options { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 0.5rem; margin-top: 0.25rem; max-height: 250px; overflow-y: auto; z-index: 50; display: none; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.select-options.open { display: block; }
.option-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; cursor: pointer; transition: background 0.15s; font-size: 0.875rem; border-bottom: 1px solid #f3f4f6; }
.option-item:last-child { border-bottom: none; }
.option-item:hover { background: #f9fafb; }
.option-checkbox { width: 1.1rem; height: 1.1rem; border-radius: 0.25rem; border: 1px solid #d1d5db; cursor: pointer; accent-color: #1e293b; }

/* Helpers */
span.required::after { content: ' *'; color: #ef4444; }
