/* ============================================================
   B2B Bulk Order – OTP Login Page  (Premium Dark B2B Design)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

body { background-color: #dfe5ee !important; }

/* ── Page wrapper (full-screen layout) ── */
.b2b-login-page-wrap {
    min-height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: #0a0a0f;
    display: flex;
    align-items: stretch;
    font-family: 'DM Sans', sans-serif;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Hide theme titles to prevent duplicates with our custom heading */
.entry-title, .page-title, .post-title, .elementor-page-title {
    display: none !important;
}

/* ── Left panel – brand/visual ── */
.b2b-login-left {
    flex: 1;
    background: linear-gradient(145deg, #0d0d18 0%, #0a0a14 40%, #12081a 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 52px;
    position: relative;
    overflow: hidden;
}

.b2b-login-left::before {
    content: '';
    position: absolute;
    top: -120px; left: -120px;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(201,32,116,0.18) 0%, transparent 65%);
    pointer-events: none;
}

.b2b-login-left::after {
    content: '';
    position: absolute;
    bottom: -80px; right: -80px;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(100,40,200,0.12) 0%, transparent 65%);
    pointer-events: none;
}

.b2b-brand-logo {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #c92074;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.b2b-brand-logo span { color: #fff; }

.b2b-left-content {
    position: relative;
    z-index: 2;
}

.b2b-left-content h2 {
    font-family: 'Syne', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 20px;
    letter-spacing: -1px;
}

.b2b-left-content h2 em {
    font-style: normal;
    color: #c92074;
}

.b2b-left-content p {
    color: rgba(255,255,255,0.45);
    font-size: 15px;
    line-height: 1.7;
    max-width: 340px;
    margin: 0 0 40px;
}

.b2b-feature-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.b2b-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    font-weight: 400;
}

.b2b-feature-list li .b2b-feat-icon {
    width: 34px; height: 34px;
    background: rgba(201,32,116,0.12);
    border: 1px solid rgba(201,32,116,0.25);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.b2b-left-footer {
    color: rgba(255,255,255,0.2);
    font-size: 12px;
    position: relative;
    z-index: 2;
}

/* Decorative grid lines */
.b2b-grid-deco {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ── Right panel – form ── */
.b2b-login-right {
    width: 480px;
    flex-shrink: 0;
    background: #0f0f18;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 52px;
    border-left: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

/* ── OTP Wrapper (inside right panel) ── */
.b2b-otp-wrapper {
    width: 100%;
}

.b2b-step-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c92074;
    margin-bottom: 12px;
}

.b2b-otp-wrapper h3 {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.b2b-otp-wrapper .b2b-sub {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ── Form fields ── */
.b2b-field {
    margin-bottom: 20px;
}

.b2b-field label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.b2b-field input[type="email"],
.b2b-field input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.b2b-field input:focus {
    border-color: #011748;
    background: rgba(1,23,72,0.06);
    box-shadow: 0 0 0 3px rgba(1,23,72,0.12);
}

.b2b-field input::placeholder { color: rgba(0,0,0,0.4); }

/* OTP digit input */
#b2b-otp-input {
    font-size: 26px !important;
    letter-spacing: 0.5em !important;
    text-align: center !important;
    font-family: 'Syne', sans-serif !important;
    font-weight: 700 !important;
    padding: 16px !important;
}

/* ── Buttons ── */
.b2b-btn-primary {
    width: 100%;
    padding: 15px 24px;
    background: #011748;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.b2b-btn-primary:hover {
    background: #022370;
    box-shadow: 0 8px 24px rgba(1,23,72,0.35);
    transform: translateY(-1px);
}

.b2b-btn-primary:active { transform: translateY(0); }

.b2b-btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* Loading spinner inside button */
.b2b-spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: b2b-spin 0.7s linear infinite;
    display: none;
}
.b2b-loading .b2b-spinner { display: inline-block; }
.b2b-loading .b2b-btn-label { display: none; }

@keyframes b2b-spin { to { transform: rotate(360deg); } }

/* ── Messages ── */
.b2b-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 13.5px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.b2b-message::before {
    flex-shrink: 0;
    font-size: 15px;
    margin-top: 1px;
}

.b2b-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.25);
    color: #fca5a5;
}
.b2b-error::before { content: '⚠'; }

.b2b-success {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.25);
    color: #86efac;
}
.b2b-success::before { content: '✓'; }

/* ── Divider & links ── */
.b2b-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
}
.b2b-divider hr {
    flex: 1;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 0;
}
.b2b-divider span {
    color: rgba(255,255,255,0.2);
    font-size: 12px;
    white-space: nowrap;
}

.b2b-link-row {
    text-align: center;
    margin-top: 20px;
}

.b2b-link-row a,
#b2b-resend-otp {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.b2b-link-row a:hover,
#b2b-resend-otp:hover { color: #c92074; }

/* OTP hint text */
#b2b-otp-hint {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px 14px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin-bottom: 24px;
}

/* Step animation */
.b2b-step { animation: b2b-fadein 0.3s ease; }
@keyframes b2b-fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Already logged in ── */
.b2b-already-logged {
    background: rgba(34,197,94,0.07);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: #86efac;
    font-size: 14px;
}
.b2b-already-logged a { color: #c92074; }

/* ── Hide price link (shop) ── */
a.b2b-login-to-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(201,32,116,0.08);
    border: 1px dashed rgba(201,32,116,0.35);
    border-radius: 6px;
    color: #c92074;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}
a.b2b-login-to-view:hover { background: rgba(201,32,116,0.15); }
a.b2b-login-to-view::before { content: '🔒'; font-size: 11px; }

/* ── Bulk qty notice ── */
.b2b-min-notice {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 8px;
    font-style: italic;
    background: rgba(201,32,116,0.05);
    border-left: 2px solid #c92074;
    padding: 4px 10px;
    border-radius: 0 4px 4px 0;
}

/* ── Responsive ── */
@media (max-width: 860px) {
    .b2b-login-page-wrap { flex-direction: column; }
    .b2b-login-left {
        padding: 36px 28px;
        min-height: auto;
    }
    .b2b-left-content h2 { font-size: 30px; }
    .b2b-login-right {
        width: 100%;
        padding: 40px 28px;
    }
}

/* ── WooCommerce My Account overrides ── */
.woocommerce-MyAccount-navigation {
    background: #0f0f18;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    margin-bottom: 20px;
}

.woocommerce-MyAccount-navigation ul { margin: 0; padding: 8px 0; list-style: none; }

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    border-left: 3px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    color: #fff;
    background: rgba(201,32,116,0.08);
    border-left-color: #c92074;
}

.woocommerce-MyAccount-content {
    background: #0f0f18;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 28px;
    color: rgba(255,255,255,0.75);
    font-family: 'DM Sans', sans-serif;
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    font-family: 'Syne', sans-serif;
    color: #fff;
}

/* WC table styling in account */
.woocommerce-orders-table,
.woocommerce-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
}

.woocommerce-orders-table th,
.woocommerce-table th {
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.45);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-weight: 500;
}

.woocommerce-orders-table td,
.woocommerce-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
}

.woocommerce-orders-table .button,
.woocommerce-table .button {
    background: #c92074 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    padding: 6px 14px !important;
}

/* WC form inputs in account */
.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content input[type="tel"] {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-family: 'DM Sans', sans-serif !important;
}

.woocommerce-MyAccount-content input:focus {
    border-color: #c92074 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(201,32,116,0.12) !important;
}

.woocommerce-MyAccount-content .woocommerce-Button,
.woocommerce-MyAccount-content button[type="submit"] {
    background: #c92074 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 28px !important;
    font-family: 'Syne', sans-serif !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

.woocommerce-MyAccount-content .woocommerce-Button:hover,
.woocommerce-MyAccount-content button[type="submit"]:hover {
    background: #e0247f !important;
}

/* Order status badges */
.woocommerce-order-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

mark.on-hold, .status-on-hold { background: rgba(234,179,8,0.15) !important; color: #fde047 !important; }
mark.completed, .status-completed { background: rgba(34,197,94,0.15) !important; color: #86efac !important; }
mark.processing, .status-processing { background: rgba(59,130,246,0.15) !important; color: #93c5fd !important; }
mark.cancelled, .status-cancelled { background: rgba(239,68,68,0.15) !important; color: #fca5a5 !important; }

/* ── Full-page layout override (removes theme header/footer padding) ── */
body.b2b-login-fullpage .site-header,
body.b2b-login-fullpage .site-footer,
body.b2b-login-fullpage header.entry-header,
body.b2b-login-fullpage .entry-title,
body.b2b-login-fullpage .woocommerce-breadcrumb,
body.b2b-login-fullpage #masthead,
body.b2b-login-fullpage #colophon {
    display: none !important;
}

body.b2b-login-fullpage .site-main,
body.b2b-login-fullpage .entry-content,
body.b2b-login-fullpage main,
body.b2b-login-fullpage #primary,
body.b2b-login-fullpage .container,
body.b2b-login-fullpage .woocommerce {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

body.b2b-login-fullpage {
    background: #0a0a0f !important;
    margin: 0;
    padding: 0;
}

/* Admin bar fix */
body.b2b-login-fullpage.admin-bar .b2b-login-page-wrap {
    min-height: calc(100vh - 32px);
}
