/* ================================================================
   REGISTER-PROCESS  — split-panel wizard
   Uses the app's existing modal / btn / md-* class systems.
   Only layout-specific classes are defined here.
================================================================ */

/* ── Shell ─────────────────────────────────────────────────── */
.rp-shell {
    display: grid;
    grid-template-columns: 400px 1fr;
    min-height: 100vh;
}

/* ── Left brand panel ───────────────────────────────────────── */
.rp-brand {
    background: linear-gradient(160deg, var(--feature-accent, #1d4ed8) 0%, #2563eb 50%, var(--feature-accent-dk, #1e40af) 100%);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.rp-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
}

.rp-brand-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.rp-brand-logo-name {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.3px;
}

.rp-brand-heading {
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -.4px;
}

.rp-brand-heading em {
    font-style: normal;
    color: #93c5fd;
}

.rp-brand-sub {
    font-size: 14px;
    color: rgba(255,255,255,.72);
    line-height: 1.6;
    margin-bottom: 36px;
}

.rp-brand-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: auto;
}

.rp-brand-feat {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rp-brand-feat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #93c5fd;
    flex-shrink: 0;
}

.rp-brand-feat-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.rp-brand-feat-text span {
    font-size: 12px;
    color: rgba(255,255,255,.58);
    line-height: 1.4;
}

.rp-brand-footer {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: 12px;
    color: rgba(255,255,255,.4);
}

.rp-brand-footer a {
    color: rgba(255,255,255,.55);
    text-decoration: underline;
}

/* ── Right form panel ───────────────────────────────────────── */
.rp-form-panel {
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 44px 32px;
    overflow-y: auto;
}

.rp-form-inner {
    width: 100%;
    max-width: 560px;
}

/* Override modal-content sizing inside this panel */
.rp-form-panel .modal-content {
    width: 100% !important;
    max-width: 560px !important;
    max-height: none !important;
    box-shadow: 0 4px 24px rgba(15,23,42,.08), 0 1px 4px rgba(15,23,42,.04) !important;
    overflow: visible !important;
}

.rp-form-panel .modal-form {
    padding-bottom: 20px !important; /* no sticky footer hiding, so reduce bottom pad */
    max-height: none !important;
    overflow: visible !important;
}

/* ── Top bar ────────────────────────────────────────────────── */
.rp-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.rp-login-link {
    font-size: 13px;
    color: #64748b;
}

.rp-login-link a {
    color: var(--feature-accent, #1d4ed8);
    font-weight: 600;
    text-decoration: none;
}
.rp-login-link a:hover { text-decoration: underline; }

.rp-lang-tabs {
    display: flex;
    gap: 3px;
    background: #e2e8f0;
    border-radius: 8px;
    padding: 3px;
}

.rp-lang-tab {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: background .12s, color .12s;
}

.rp-lang-tab.active {
    background: #fff;
    color: var(--feature-accent, #1d4ed8);
    box-shadow: 0 1px 3px rgba(15,23,42,.08);
}

/* ── Step indicator ─────────────────────────────────────────── */
.rp-steps {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.rp-step {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.rp-step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #94a3b8;
    transition: all .2s;
}

.rp-step.active .rp-step-circle {
    background: var(--feature-accent, #1d4ed8);
    border-color: var(--feature-accent, #1d4ed8);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(29,78,216,.14);
}

.rp-step.done .rp-step-circle {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.rp-step-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
}

.rp-step.active .rp-step-label { color: var(--feature-accent, #1d4ed8); font-weight: 700; }
.rp-step.done  .rp-step-label  { color: #16a34a; }

.rp-step-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 8px;
    transition: background .2s;
}

.rp-step-line.done { background: #16a34a; }

/* ── Warehouse list ─────────────────────────────────────────── */
.rp-warehouse-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.rp-warehouse-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid var(--feature-border, #e2e8f0);
    border-radius: 10px;
}

.rp-wh-name { font-size: 13px; font-weight: 600; color: var(--feature-ink, #0f172a); }
.rp-wh-meta { font-size: 11px; color: var(--feature-faint, #94a3b8); margin-top: 2px; }

.rp-wh-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    background: var(--feature-accent-lt, #eff6ff);
    color: var(--feature-accent, #1d4ed8);
    border: 1px solid #bfdbfe;
}

.rp-prompt-add {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--feature-accent-lt, #eff6ff);
    border: 1px dashed #bfdbfe;
    border-radius: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.rp-prompt-text { font-size: 13px; color: var(--feature-ink, #0f172a); }
.rp-prompt-actions { display: flex; gap: 8px; }

.rp-error {
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 12px;
    color: #dc2626;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
    .rp-shell { grid-template-columns: 1fr; }
    .rp-brand  { display: none; }
    .rp-form-panel { padding: 24px 16px; }
}

@media (max-width: 540px) {
    .rp-form-panel .form-grid.two-col { grid-template-columns: 1fr; }
    .rp-top-bar { flex-wrap: wrap; gap: 10px; }
}
