/* ==========================================================================
   MARKETONEX — SIGNUP ENHANCEMENTS: AI PASSWORD GENERATOR, STRENGTH CHECK, & VENDOR SIGNUP
   ========================================================================== */

/* ── Container & Scrollable Form Layout ──────────────────────── */
.form-side {
    overflow-y: auto !important;
    max-height: 100vh !important;
    padding: 2rem 8% !important;
    justify-content: flex-start !important;
}

.form-container {
    margin: auto 0 !important;
    width: 100% !important;
    max-width: 440px !important;
    padding-top: 1.5rem !important;
    padding-bottom: 2.5rem !important;
}

/* ── Floating Labels Theme Integration ────────────────────────── */
.input {
    border: 1.5px solid var(--border-color, #333333) !important;
    border-radius: 12px !important;
    background: var(--input-bg, #1a1a1a) !important;
    padding: 0.95rem 1rem !important;
    font-size: 0.95rem !important;
    color: var(--text-primary, #ffffff) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 1rem !important;
    transition: all 0.2s ease !important;
}

.input-group:has(.toggle-password) .input {
    padding-right: 48px !important;
}

.user-label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #8A8A8A) !important;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    padding: 0 6px;
    background: transparent;
    line-height: 1;
}

.input:focus,
.input:not(:placeholder-shown) {
    outline: none !important;
    border-color: var(--color-primary, #E50914) !important;
}

.input:focus {
    box-shadow: 0 0 0 3px var(--color-primary-glow, rgba(229, 9, 20, 0.25)) !important;
}

.input:focus ~ .user-label,
.input:not(:placeholder-shown) ~ .user-label,
.input:-webkit-autofill ~ .user-label {
    top: 0 !important;
    transform: translateY(-50%) scale(0.85) !important;
    background: var(--input-bg, #1a1a1a) !important;
    color: var(--color-primary, #E50914) !important;
    font-weight: 600;
}

[data-theme="light"] .input {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .input:focus ~ .user-label,
[data-theme="light"] .input:not(:placeholder-shown) ~ .user-label {
    background: #ffffff !important;
}

/* ── Role Switcher Tabs (Customer vs Vendor) ─────────────────── */
.signup-role-tabs {
    display: flex;
    align-items: center;
    background: var(--bg-secondary, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 14px;
    padding: 4px;
    gap: 6px;
    margin-bottom: 1.4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .signup-role-tabs {
    background: #f1f5f9;
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.role-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--text-muted, #94a3b8);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
}

.role-tab:hover {
    color: var(--text-primary, #ffffff);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .role-tab:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.04);
}

.role-tab.active {
    background: var(--color-primary, #E50914) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.35);
}

.role-badge {
    display: inline-block;
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

/* ── AI Password Generator Header Row ────────────────────────── */
.password-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.ai-generate-pwd-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(168, 85, 247, 0.18));
    border: 1px solid rgba(168, 85, 247, 0.45);
    color: #c084fc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 2px 6px rgba(168, 85, 247, 0.15);
}

.ai-generate-pwd-btn:hover {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #ffffff !important;
    border-color: #a855f7;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
    transform: translateY(-1px);
}

.ai-generate-pwd-btn i {
    font-size: 0.85rem;
    animation: sparkle-pulse 2s infinite ease-in-out;
}

@keyframes sparkle-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15) rotate(5deg); opacity: 0.85; }
}

[data-theme="light"] .ai-generate-pwd-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.1));
    border-color: rgba(168, 85, 247, 0.35);
    color: #7e22ce;
}

[data-theme="light"] .ai-generate-pwd-btn:hover {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #ffffff !important;
}

/* ── Live Password Strength Meter Container ──────────────────── */
.pwd-strength-container {
    margin-top: -6px;
    margin-bottom: 1.25rem;
    padding: 10px 14px;
    background: var(--bg-secondary, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    transition: all 0.25s ease;
}

[data-theme="light"] .pwd-strength-container {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.pwd-strength-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.pwd-strength-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
}

.pwd-strength-score {
    font-weight: 700;
    font-size: 0.82rem;
    transition: color 0.2s ease;
}

/* Segmented Progress Bar */
.pwd-meter-bars {
    display: flex;
    gap: 4px;
    height: 6px;
    margin-bottom: 8px;
}

.pwd-meter-segment {
    flex: 1;
    height: 100%;
    border-radius: 3px;
    background: rgba(148, 163, 184, 0.2);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

/* Checklist of 5 Requirements */
.pwd-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
    font-size: 0.74rem;
    color: var(--text-muted, #94a3b8);
}

.pwd-checklist li {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.pwd-checklist li i {
    font-size: 0.72rem;
    color: #64748b;
    transition: all 0.2s ease;
}

.pwd-checklist li.valid {
    color: #10b981 !important;
    font-weight: 500;
}

.pwd-checklist li.valid i {
    color: #10b981 !important;
}

/* Copy button & AI Generated Banner */
.pwd-copy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .pwd-copy-row {
    border-top-color: #e2e8f0;
}

.pwd-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pwd-copy-btn:hover {
    background: #10b981;
    color: #ffffff;
}

.pwd-copy-btn.copied {
    background: #10b981 !important;
    color: #ffffff !important;
}

.pwd-ai-notice {
    font-size: 0.72rem;
    color: #a855f7;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

/* ── Confirm Password Match Indicator ────────────────────────── */
.pwd-match-indicator {
    margin-top: -8px;
    margin-bottom: 1rem;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    color: var(--text-muted, #94a3b8);
}

.pwd-match-indicator.match {
    color: #10b981 !important;
    font-weight: 600;
}

.pwd-match-indicator.mismatch {
    color: #ef4444 !important;
    font-weight: 600;
}

/* ── Vendor Onboarding Card (Dedicated View) ─────────────────── */
.vendor-signup-card {
    animation: fadeIn 0.35s ease-out forwards;
}

.vendor-card-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.vendor-icon-badge {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.15), rgba(255, 106, 0, 0.15));
    border: 1px solid rgba(229, 9, 20, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: var(--color-primary, #E50914);
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.2);
}

.vendor-card-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary, #ffffff);
}

[data-theme="light"] .vendor-card-header h3 {
    color: #0f172a;
}

.vendor-card-header p {
    font-size: 0.88rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1.45;
}

.vendor-perks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.perk-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    transition: all 0.2s ease;
}

.perk-item:hover {
    border-color: rgba(229, 9, 20, 0.3);
    transform: translateY(-1px);
}

[data-theme="light"] .perk-item {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.perk-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(229, 9, 20, 0.12);
    color: var(--color-primary, #E50914);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.perk-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.perk-text strong {
    font-size: 0.88rem;
    color: var(--text-primary, #ffffff);
}

[data-theme="light"] .perk-text strong {
    color: #0f172a;
}

.perk-text span {
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1.35;
}

.vendor-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1.25rem;
}

.vendor-primary-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    text-align: center;
    width: 100%;
    padding: 0.95rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    background: var(--color-primary, #E50914);
    color: #ffffff !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(229, 9, 20, 0.35);
}

.vendor-primary-cta:hover {
    background: var(--color-primary-hover, #b20710);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.45);
    transform: translateY(-1px);
}

.vendor-login-hint {
    text-align: center;
    margin-top: 10px;
    font-size: 0.88rem;
    color: var(--text-muted, #94a3b8);
}

.vendor-login-hint a {
    color: var(--color-primary, #E50914);
    font-weight: 600;
    text-decoration: none;
}

.vendor-promo-box {
    margin-top: 1.25rem;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(229, 9, 20, 0.06);
    border: 1px dashed rgba(229, 9, 20, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--text-secondary, #cbd5e1);
}

[data-theme="light"] .vendor-promo-box {
    color: #334155;
    background: rgba(229, 9, 20, 0.04);
}

.vendor-promo-box a {
    color: var(--color-primary, #E50914);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.vendor-promo-box a:hover {
    text-decoration: underline;
}

/* ── Mobile responsiveness adjustments ──────────────────────── */
@media (max-width: 768px) {
    .pwd-checklist {
        grid-template-columns: 1fr;
    }
    .form-side {
        padding: 1.5rem 5% !important;
    }
}

