/* Shared styles for signup / login / onboarding forms (extends styles.css). */
.form-wrap { min-height: calc(100vh - 78px); background-color: #fbfdff; background-image: radial-gradient(circle, rgba(56,86,137,.13) 1px, transparent 1.2px); background-size: 28px 28px; padding: 64px 20px 96px; display: flex; justify-content: center; }
.form-panel { width: 100%; max-width: 660px; }
.form-panel.narrow { max-width: 520px; }
.form-panel > .section-label { margin-bottom: 14px; }
.form-panel h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 14px; }
.form-panel > p.intro { max-width: 520px; margin-bottom: 34px; }
.form-card { background: #fff; border: 1px solid #dfe4eb; border-radius: 20px; padding: 34px 30px; box-shadow: 0 30px 70px rgba(33,60,102,.08); }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 12px; font-weight: 750; color: #35445d; margin-bottom: 8px; letter-spacing: .02em; }
.field small.hint { display: block; font-size: 11px; color: #7b8492; margin-top: 7px; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; border: 1px solid #d4dae5; border-radius: 9px; padding: 10px 14px; font-size: 14px; font-family: inherit; color: var(--ink); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(19,87,232,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sub-group { display: flex; align-items: stretch; }
.sub-group input { border-radius: 9px 0 0 9px; border-right: 0; }
.sub-suffix { display: flex; align-items: center; padding: 0 14px; border: 1px solid #d4dae5; border-radius: 0 9px 9px 0; background: var(--soft); color: #667183; font-size: 13px; white-space: nowrap; }
.sub-status { font-size: 11px; font-weight: 700; margin-top: 7px; display: none; }
.sub-status.ok { display: block; color: #15935b; }
.sub-status.bad { display: block; color: #c2372f; }
.form-error { display: none; margin: 0 0 18px; padding: 12px 15px; border: 1px solid #f3c6c2; background: #fdf2f1; color: #b03028; border-radius: 10px; font-size: 13px; }
.form-error.show { display: block; }
.submit-btn { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.submit-btn[disabled] { opacity: .6; cursor: default; transform: none !important; }
.after-note { font-size: 11px; color: #7b8492; text-align: center; margin: 16px 0 0; }

/* File-upload fields (KYC) */
.upload-field input[type="file"] { padding: 9px 12px; min-height: 0; font-size: 12px; background: var(--soft); cursor: pointer; }
.upload-field input[type="file"]::file-selector-button { border: 1px solid #d4dae5; background: #fff; color: #35445d; border-radius: 7px; padding: 6px 12px; font-size: 12px; font-weight: 700; margin-right: 12px; cursor: pointer; font-family: inherit; }

/* Onboarding step chrome */
.steps-bar { display: flex; gap: 10px; margin-bottom: 26px; }
.steps-bar span { flex: 1; height: 4px; border-radius: 4px; background: #dde3ec; }
.steps-bar span.done { background: var(--blue); }
.section-block { border-top: 1px solid #eef1f5; margin-top: 8px; padding-top: 22px; }
.section-block:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.section-block > h3 { font-size: 15px; margin-bottom: 4px; letter-spacing: -.02em; }
.section-block > p.blurb { font-size: 12px; color: #7b8492; margin-bottom: 18px; }

/* Status cards */
.status-card { text-align: center; padding: 46px 30px; }
.status-card .success-ring { margin: 0 auto 20px; }
.status-card h2 { font-size: 28px; margin-bottom: 12px; }
.status-card p { max-width: 440px; margin: 0 auto 8px; font-size: 14px; }
.status-card .button { margin-top: 24px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.status-pill.review { background: #fff2db; color: #a56b14; }
.status-pill.approved { background: #e3f8ed; color: #138953; }
.status-pill.rejected { background: #fdf2f1; color: #b03028; }

.topbar-user { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 12px; color: #5d6879; }

@media (max-width: 620px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 26px 18px; border-radius: 15px; }
}
