/* HaulBook web — account + onboarding pages. Builds on styles.css (variables,
   buttons, header). No framework, no build. */

.app-main { min-height: calc(100vh - 70px); display: flex; flex-direction: column; align-items: center; padding: 38px 22px 60px; }
@media(max-width:480px){ .app-main { padding-left: 16px; padding-right: 16px; } .app-card { padding: 26px 20px; } }
.app-card {
  width: 100%; max-width: 440px; background: linear-gradient(180deg, var(--card), var(--bg2));
  border: 1px solid var(--line); border-radius: 22px; padding: 30px 28px;
  box-shadow: 0 30px 70px -34px rgba(0,0,0,.7);
}
.app-card.wide { max-width: 560px; }
.app-card h1 { font-size: 25px; letter-spacing: -.6px; margin-bottom: 6px; line-height: 1.15; }
.app-card .lede { color: var(--muted); font-size: 15px; margin-bottom: 22px; }

/* Tabs (Create account / Log in) */
.tabs { display: flex; background: var(--bg); border: 1px solid var(--line2); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.tabs button {
  flex: 1; background: transparent; border: 0; cursor: pointer; color: var(--muted);
  font-size: 14.5px; font-weight: 700; padding: 9px 10px; border-radius: 9px; transition: background .15s, color .15s;
}
.tabs button.on { background: var(--card2); color: var(--text); }

/* Form fields */
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.fld label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.fld input, .fld select {
  background: var(--bg); border: 1px solid var(--line2); border-radius: 11px; padding: 12px 13px;
  color: var(--text); font-size: 16px; outline: none; width: 100%; transition: border-color .15s;
  font-family: inherit;
}
.fld input:focus, .fld select:focus { border-color: var(--amber); }
.fld .hint { font-size: 12px; color: var(--faint); }
.fld.invalid input, .fld.invalid select { border-color: var(--red); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width:460px){ .grid2 { grid-template-columns: 1fr; gap: 0; } }

.btn-amber.full, .btn-ghost.full { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

.formnote { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }
.formnote a { color: var(--amber); text-decoration: none; }
.linkbtn { background: none; border: 0; color: var(--amber); cursor: pointer; font: inherit; padding: 0; }

/* Alerts */
.alert { font-size: 13.5px; border-radius: 11px; padding: 11px 13px; margin-bottom: 16px; line-height: 1.45; }
.alert.err { color: var(--red); background: var(--red-bg); border: 1px solid rgba(255,107,94,.3); }
.alert.ok { color: var(--green); background: var(--green-bg); border: 1px solid rgba(52,210,123,.3); }
.alert.info { color: var(--amber); background: var(--amber-bg); border: 1px solid rgba(255,176,32,.25); }
.hidden { display: none !important; }

/* Verify code input */
.codebox { display: flex; gap: 10px; align-items: center; }
.codebox input { letter-spacing: 8px; font-size: 22px; text-align: center; font-variant-numeric: tabular-nums; }

/* Onboarding progress dots */
.steps { display: flex; gap: 8px; justify-content: center; margin-bottom: 24px; }
.steps .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); transition: all .2s; }
.steps .dot.on { background: var(--amber); width: 22px; border-radius: 4px; }
.steps .dot.done { background: var(--amber-d); }

.steplabel { font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; text-align: center; }

/* Mode picker cards */
.choices { display: grid; gap: 12px; margin-bottom: 8px; }
.choice {
  text-align: left; background: var(--bg); border: 1px solid var(--line2); border-radius: 14px;
  padding: 16px 16px; cursor: pointer; transition: border-color .15s, background .15s; display: flex; gap: 13px; align-items: flex-start; width: 100%;
}
.choice:hover { border-color: #5a5a66; }
.choice.on { border-color: var(--amber); background: var(--amber-bg); }
.choice .ico { font-size: 22px; line-height: 1; margin-top: 1px; }
.choice .t { font-size: 15.5px; font-weight: 700; margin-bottom: 2px; }
.choice .d { font-size: 13px; color: var(--muted); line-height: 1.4; }

.navrow { display: flex; gap: 12px; margin-top: 22px; }
.navrow .btn { flex: 1; }
.navrow .grow { flex: 2; }

/* Install (done) screen */
.done-wrap { text-align: center; max-width: 460px; }
.done-wrap .check { width: 64px; height: 64px; border-radius: 50%; background: var(--green-bg); border: 1px solid rgba(52,210,123,.35); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 30px; color: var(--green); }
.done-wrap h1 { font-size: 27px; letter-spacing: -.7px; margin-bottom: 10px; }
.done-wrap p { color: var(--muted); font-size: 16px; margin-bottom: 8px; }
.store-row { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 26px; }
.store-row .appstore { justify-content: center; }
.qr { margin: 22px auto 0; width: 156px; height: 156px; background: #fff; border-radius: 14px; padding: 10px; }
.qr img { width: 100%; height: 100%; }
.summary { text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 24px 0 4px; }
.summary .row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.summary .row .k { color: var(--muted); } .summary .row .v { font-weight: 700; }

.spinner { width: 22px; height: 22px; border: 2.5px solid rgba(255,255,255,.2); border-top-color: var(--amber); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.center-spin { display: flex; justify-content: center; padding: 60px 0; }
