/* ──────────────────────────────────────────────────────────────
   Castor B2B Lock — Trendyol Baklava Light Theme
   Matches magaza.castorcoffee.com.tr design language
   ────────────────────────────────────────────────────────────── */

:root {
    --b2b-orange: #f27a1a;
    --b2b-orange-hover: #d9650d;
    --b2b-orange-light: #fff8f3;
    --b2b-orange-glow: rgba(242, 122, 26, 0.18);
    --b2b-espresso: #1a1a1a;
    --b2b-text: #333333;
    --b2b-text-grey: #666666;
    --b2b-text-light: #999999;
    --b2b-bg: #f5f5f6;
    --b2b-white: #ffffff;
    --b2b-border: #e6e6e6;
    --b2b-border-hover: #c4c4c4;
    --b2b-shadow: 0 2px 12px rgba(0,0,0,0.06);
    --b2b-shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --b2b-radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.b2b-lock-page {
    background: var(--b2b-bg);
    font-family: 'Inter', sans-serif;
    color: var(--b2b-text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
    -webkit-font-smoothing: antialiased;
}

/* ── Subtle background pattern ── */
.b2b-bg-pattern {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 600px 400px at 10% 20%, rgba(242,122,26,0.06), transparent),
        radial-gradient(ellipse 500px 500px at 90% 80%, rgba(242,122,26,0.04), transparent);
}

/* ── Portal wrapper ── */
.b2b-portal {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Header / Branding ── */
.b2b-header {
    text-align: center;
    padding: 0 0 32px;
}

.b2b-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    line-height: 1.05;
    margin-bottom: 16px;
}

.b2b-logo-main {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--b2b-espresso);
}

.b2b-logo-sub {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--b2b-orange);
    margin-top: 2px;
}

.b2b-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--b2b-orange-light);
    border: 1px solid rgba(242,122,26,0.15);
    color: var(--b2b-orange);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
}

.b2b-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ── Card ── */
.b2b-card {
    background: var(--b2b-white);
    border: 1px solid var(--b2b-border);
    border-radius: var(--b2b-radius);
    box-shadow: var(--b2b-shadow-lg);
    overflow: hidden;
}

/* ── Tabs ── */
.b2b-tabs {
    display: flex;
    border-bottom: 1px solid var(--b2b-border);
    background: #fafafa;
}

.b2b-tab {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 16px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--b2b-text-grey);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.b2b-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background 0.2s ease;
}

.b2b-tab:hover {
    color: var(--b2b-text);
    background: rgba(0,0,0,0.01);
}

.b2b-tab.active {
    color: var(--b2b-orange);
}

.b2b-tab.active::after {
    background: var(--b2b-orange);
}

/* ── Tab content ── */
.b2b-tab-panel { display: none; }
.b2b-tab-panel.active { display: block; }

/* ── Form area ── */
.b2b-form-wrap {
    padding: 32px;
}

.b2b-form-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--b2b-espresso);
    margin-bottom: 4px;
}

.b2b-form-subtitle {
    font-size: 13px;
    color: var(--b2b-text-grey);
    margin-bottom: 28px;
    line-height: 1.5;
}

/* ── Form fields ── */
.b2b-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.b2b-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.b2b-field { display: flex; flex-direction: column; gap: 6px; }

.b2b-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--b2b-text);
}

.b2b-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1.5px solid var(--b2b-border);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--b2b-text);
    background: #f7f7f8;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.b2b-input::placeholder {
    color: var(--b2b-text-light);
    font-weight: 400;
}

.b2b-input:hover {
    border-color: var(--b2b-border-hover);
}

.b2b-input:focus {
    border-color: var(--b2b-orange);
    box-shadow: 0 0 0 3px var(--b2b-orange-glow);
    background: var(--b2b-white);
}

/* ── Primary button ── */
.b2b-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    padding: 0 24px;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 6px;
}

.b2b-btn-primary {
    background: var(--b2b-orange);
    color: #fff;
}

.b2b-btn-primary:hover {
    background: var(--b2b-orange-hover);
    box-shadow: 0 4px 14px var(--b2b-orange-glow);
    transform: translateY(-1px);
}

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

.b2b-btn-primary svg {
    width: 18px;
    height: 18px;
}

.b2b-btn-secondary {
    background: var(--b2b-white);
    color: var(--b2b-text);
    border: 1.5px solid var(--b2b-border);
}

.b2b-btn-secondary:hover {
    border-color: var(--b2b-border-hover);
    background: #fafafa;
}

/* ── Divider ── */
.b2b-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
}

.b2b-divider::before,
.b2b-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--b2b-border);
}

.b2b-divider span {
    font-size: 12px;
    color: var(--b2b-text-light);
    font-weight: 500;
}

/* ── Error / Alert ── */
.b2b-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.b2b-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.b2b-alert-error svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #dc2626;
    margin-top: 1px;
}

/* ── Pending approval card ── */
.b2b-pending {
    padding: 48px 32px;
    text-align: center;
}

.b2b-pending-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--b2b-orange-light);
    border: 2px solid rgba(242,122,26,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.b2b-pending-icon svg {
    width: 32px;
    height: 32px;
    color: var(--b2b-orange);
}

.b2b-pending h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--b2b-espresso);
    margin-bottom: 12px;
}

.b2b-pending p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--b2b-text-grey);
    margin-bottom: 8px;
}

.b2b-pending p:last-of-type {
    margin-bottom: 28px;
}

.b2b-pending .b2b-info-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #166534;
    margin-bottom: 24px;
    text-align: left;
}

.b2b-pending .b2b-info-box svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #16a34a;
}

/* ── Footer ── */
.b2b-footer {
    text-align: center;
    padding: 24px 0 0;
    font-size: 12px;
    color: var(--b2b-text-light);
}

.b2b-footer a {
    color: var(--b2b-orange);
    text-decoration: none;
    font-weight: 600;
}

.b2b-footer a:hover {
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 520px) {
    .b2b-portal { max-width: 100%; }
    .b2b-form-wrap { padding: 24px 20px; }
    .b2b-row { grid-template-columns: 1fr; }
    .b2b-logo-main { font-size: 28px; }
    .b2b-pending { padding: 36px 20px; }
}
