/* =============================================================
   B2B Pharmacy Registration Page Styles
   ============================================================= */

.b2b-register-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f766e 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px 60px;
}

.b2b-register-card {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 720px;
    box-shadow: 0 24px 80px rgba(0,0,0,.25);
    overflow: hidden;
}

/* ── Header ──────────────────────────────────────── */
.b2b-register-header {
    background: linear-gradient(135deg, #1d4ed8 0%, #0d9488 100%);
    padding: 32px 36px;
    text-align: center;
    color: #fff;
}
.b2b-register-header .b2b-logo-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,.15);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
}
.b2b-register-header h1 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
}
.b2b-register-header p {
    font-size: 14px;
    opacity: .85;
    margin: 0;
}
.b2b-register-header .b2b-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}
.b2b-register-header .b2b-badge-pill {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ── Body ────────────────────────────────────────── */
.b2b-register-body {
    padding: 32px 36px;
}
@media (max-width: 600px) {
    .b2b-register-body { padding: 24px 20px; }
    .b2b-register-header { padding: 24px 20px; }
}

/* ── Section Dividers ────────────────────────────── */
.b2b-section {
    margin-bottom: 28px;
}
.b2b-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #dbeafe;
}
.b2b-section-title i { font-size: 16px; }

/* ── Form Fields ─────────────────────────────────── */
.b2b-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .b2b-form-row { grid-template-columns: 1fr; }
}
.b2b-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.b2b-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.b2b-form-group label .req {
    color: #dc2626;
    margin-left: 2px;
}
.b2b-form-group input,
.b2b-form-group select,
.b2b-form-group textarea {
    padding: 10px 14px;
    border: 1.5px solid #d1fae5;
    border-radius: 10px;
    font-size: 14px;
    color: #111827;
    background: #f9fafb;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
    box-sizing: border-box;
}
.b2b-form-group input:focus,
.b2b-form-group select:focus,
.b2b-form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.b2b-form-group .field-hint {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}
.b2b-form-group .field-error {
    font-size: 12px;
    color: #dc2626;
    font-weight: 600;
}

/* ── GLN Field Special ───────────────────────────── */
.gln-input-wrapper {
    position: relative;
}
.gln-input-wrapper input {
    padding-right: 50px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    letter-spacing: 2px;
    font-weight: 600;
}
.gln-counter {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    pointer-events: none;
}
.gln-counter.valid { color: #16a34a; }
.gln-counter.invalid { color: #dc2626; }

/* ── Info Box ────────────────────────────────────── */
.b2b-info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    color: #1d4ed8;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.b2b-info-box i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

.b2b-warning-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    color: #92400e;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.b2b-warning-box i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* ── KVKK Checkbox ───────────────────────────────── */
.b2b-kvkk {
    display: flex;
    gap: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: #374151;
    align-items: flex-start;
    margin-bottom: 24px;
}
.b2b-kvkk input[type=checkbox] {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: #2563eb;
}
.b2b-kvkk a { color: #2563eb; text-decoration: underline; }

/* ── Submit Button ───────────────────────────────── */
.b2b-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1d4ed8 0%, #0d9488 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity .2s, transform .1s;
    box-shadow: 0 4px 16px rgba(29,78,216,.3);
}
.b2b-submit-btn:hover  { opacity: .92; }
.b2b-submit-btn:active { transform: scale(.98); }

/* ── Footer Links ────────────────────────────────── */
.b2b-register-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #6b7280;
    padding-bottom: 8px;
}
.b2b-register-footer a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
.b2b-register-footer a:hover { text-decoration: underline; }

/* ── Success Page ────────────────────────────────── */
.b2b-success-card {
    background: #fff;
    border-radius: 20px;
    max-width: 520px;
    width: 100%;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0,0,0,.2);
}
.b2b-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dcfce7, #a7f3d0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #166534;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(22,163,74,.2);
}
.b2b-success-card h1 { font-size: 22px; font-weight: 800; color: #111827; margin-bottom: 12px; }
.b2b-success-card p  { font-size: 14px; color: #6b7280; line-height: 1.7; margin-bottom: 0; }
.b2b-success-steps {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
    text-align: left;
}
.b2b-success-steps h3 { font-size: 13px; font-weight: 700; color: #374151; margin: 0 0 12px; }
.b2b-success-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #4b5563;
}
.b2b-success-step:last-child { margin-bottom: 0; }
.b2b-success-step .step-num {
    width: 24px;
    height: 24px;
    background: #2563eb;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Error List ──────────────────────────────────── */
.b2b-error-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 24px;
    color: #991b1b;
    font-size: 13px;
}
.b2b-error-alert ul { margin: 8px 0 0; padding-left: 18px; }
.b2b-error-alert li { margin-bottom: 4px; }

/* ── Register Icon (header) ──────────────────────── */
.b2b-register-icon {
    width: 64px; height: 64px;
    background: rgba(255,255,255,.2);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px; color: #fff;
}

/* ── Register Footer ─────────────────────────────── */
.b2b-register-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    color: #6b7280;
}
.b2b-register-footer a { color: #2563eb; text-decoration: none; font-weight: 500; }

/* ── Form Section ────────────────────────────────── */
.b2b-form-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
.b2b-form-section h3 {
    font-size: 14px; font-weight: 700; color: #111827;
    margin: 0 0 16px;
    display: flex; align-items: center; gap: 8px;
}
.b2b-form-section h3 i { color: #2563eb; }

/* ── Checkbox Label ──────────────────────────────── */
.b2b-checkbox-label {
    display: flex; align-items: flex-start; gap: 10px;
    cursor: pointer; font-size: 13px; color: #374151;
    line-height: 1.5;
}
.b2b-checkbox-label input[type="checkbox"] { flex-shrink: 0; margin-top: 2px; }
.b2b-checkbox-label a { color: #2563eb; }

/* ── Password Strength ───────────────────────────── */
.password-strength { margin-top: 6px; }
.strength-bar {
    height: 4px; background: #e5e7eb;
    border-radius: 4px; overflow: hidden; margin-bottom: 4px;
}
.strength-bar #strength-fill {
    height: 100%; width: 0;
    border-radius: 4px;
    transition: width .3s, background-color .3s;
}
#strength-label { font-size: 11px; font-weight: 600; }

/* ── GLN Tooltip ─────────────────────────────────── */
.gln-info-tip {
    display: inline-flex; align-items: center;
    cursor: help; color: #0284c7; margin-left: 4px; font-size: 13px;
}
.gln-input { font-family: monospace; font-size: 15px; letter-spacing: 1px; }

/* ── Success Steps (register-done) ──────────────── */
.b2b-steps {
    display: flex; align-items: flex-start;
    gap: 0; margin: 28px 0;
}
.b2b-step {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; flex: 1; gap: 8px;
}
.b2b-step-icon {
    width: 48px; height: 48px;
    background: #f1f5f9; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #94a3b8;
    border: 2px solid #e2e8f0;
}
.b2b-step.active .b2b-step-icon {
    background: #dcfce7; color: #16a34a; border-color: #86efac;
}
.b2b-step-text strong { display: block; font-size: 13px; font-weight: 700; color: #111827; }
.b2b-step-text span   { font-size: 12px; color: #6b7280; }
.b2b-step-divider {
    flex: 0 0 24px; height: 2px; background: #e2e8f0;
    align-self: center; margin-bottom: 20px;
}

/* ── Success Icon ────────────────────────────────── */
.b2b-success-icon {
    font-size: 56px; color: #16a34a;
    margin-bottom: 16px; line-height: 1;
}
.b2b-success-card h1 { font-size: 24px; font-weight: 800; color: #111827; margin-bottom: 12px; }
