/* ── Wrapper ── */
.b2b-form-wrap {
    max-width: 540px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.b2b-form-wrap h2 {
    margin-bottom: 24px;
    font-size: 24px;
}

/* ── Notices ── */
.b2b-notice {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.b2b-notice p { margin: 0; }
.b2b-notice--error   { background: #fef2f2; border-left: 4px solid #ef4444; color: #991b1b; }
.b2b-notice--success { background: #f0fdf4; border-left: 4px solid #22c55e; color: #166534; }

/* ── Form rows ── */
.b2b-form-row {
    margin-bottom: 18px;
}
.b2b-form-row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
}
.b2b-form-row label span {
    color: #ef4444;
}
.b2b-form-row input[type="text"],
.b2b-form-row input[type="email"],
.b2b-form-row input[type="password"],
.b2b-form-row input[type="tel"],
.b2b-form-row select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.b2b-form-row input:focus,
.b2b-form-row select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.b2b-form-row small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

/* ── Half row ── */
.b2b-form-row--half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media ( max-width: 540px ) {
    .b2b-form-row--half { grid-template-columns: 1fr; }
}

/* ── Inline row ── */
.b2b-form-row--inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.b2b-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal !important;
    cursor: pointer;
}
.b2b-forgot-link {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}

/* ── Buttons ── */
.b2b-btn {
    display: inline-block;
    padding: 11px 24px;
    background: #2563eb;
    color: #fff;
    border: 2px solid #2563eb;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.b2b-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}
.b2b-btn--outline {
    background: transparent;
    color: #2563eb;
}
.b2b-btn--outline:hover {
    background: #2563eb;
    color: #fff;
}
.b2b-btn--full {
    width: 100%;
    text-align: center;
}

/* ── Footer link ── */
.b2b-form-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #6b7280;
}
.b2b-form-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

/* ── Logged in state ── */
.b2b-logged-in {
    padding: 20px;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}
.b2b-role-badge {
    display: inline-block;
    padding: 2px 10px;
    background: #2563eb;
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ── Pending page ── */
.b2b-pending-wrap {
    max-width: 480px;
    margin: 60px auto;
    text-align: center;
    padding: 40px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}
.b2b-pending-icon {
    font-size: 48px;
    margin-bottom: 16px;
}