﻿/* BuildApp ID. Mobile-first; tokens mirror the approved RedFlg design. */
:root {
  --brand: #D80000;
  --brand-dark: #A80000;
  --brand-tint: #FDECEF;
  --ink: #111111;
  --muted: #5C5C5C;
  --line: #BDBDBD;
  --line-soft: #E3E3E3;
  --surface: #F3F3F3;
  --page: #F3F3F3;
  --bg: #FFFFFF;
  --ok: #1E7A3C;
  --ok-tint: #E6F4EA;
  --warn: #8A5A00;
  --warn-tint: #FFF1D6;
  --danger: #A80000;
  --radius: 12px;
  --font: "Barlow", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
}

html[data-brand="bluelnq"] {
  --brand: #0B5FD8;
  --brand-dark: #084AA8;
  --brand-tint: #E7F0FD;
  --page: #F2F4F7;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.4; }
a { color: var(--brand); font-weight: 600; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
input:focus { border-color: var(--brand) !important; }
input:focus-visible { outline: 3px solid rgba(216, 0, 0, .3); outline-offset: 0; }

.shell { max-width: 430px; min-height: calc(100vh - 92px); margin: 0 auto; padding: 24px 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.topband { position: relative; background: var(--ink); color: #fff; padding: 18px 0 24px; }
.topband::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(-45deg, var(--brand) 0 8px, var(--ink) 8px 16px); }
.brandbar { max-width: 430px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 12px; }
.brandbar img { border-radius: 10px; display: block; }
.brandbar__text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.brandbar__parent { font-size: 12px; letter-spacing: .16em; color: #BDBDBD; font-weight: 600; }
.brandbar__name { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: .02em; color: #fff; }

h1 { position: relative; margin: 4px 0 0; padding-bottom: 14px; font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; }
h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 5px; border-radius: 3px; background: var(--brand); }
h2 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.card > h2:first-child { display: flex; align-items: center; gap: 10px; }
.card > h2:first-child::before { content: ""; flex: none; width: 5px; height: 20px; border-radius: 2px; background: var(--brand); }
.lead { margin: 0; color: var(--muted); }

form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel] {
  width: 100%; height: 54px; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0 14px;
  font: inherit; color: var(--ink); background: #fff;
}
.field-error, .validation-summary-errors { color: var(--danger); font-size: 14px; }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 56px !important; }
.input-wrap button { position: absolute; right: 2px; top: 4px; width: 44px; height: 44px; border: 0; background: transparent; color: #444; display: grid; place-items: center; cursor: pointer; }

.code-input { height: 60px !important; font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: .5em; text-align: center; }

.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 6px 0; font-size: 15px; color: #222; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--brand); flex: none; }
.consent { background: #fff; border-radius: var(--radius); padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }

.btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; transition: transform .12s ease; border-radius: var(--radius); font: 600 17px var(--font); border: 0; cursor: pointer; text-decoration: none; width: 100%; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); font-size: 16px; height: 48px; }
.btn--danger { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }
.btn--link { background: transparent; color: var(--brand); height: 44px; text-decoration: underline; }
.btn[disabled] { background: var(--line-soft); color: var(--muted); cursor: not-allowed; }

.seg { display: flex; background: #E8E8E8; border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { flex: 1; height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 600 15px var(--font); display: flex; align-items: center; justify-content: center; gap: 8px; }
.seg button[aria-pressed=true] { background: var(--ink); color: #fff; }
.tag { font-size: 11px; letter-spacing: .06em; background: var(--line-soft); color: #444; border-radius: 99px; padding: 2px 8px; }

.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.social { display: flex; gap: 12px; }
.social .btn { flex: 1; font-size: 16px; }
.social form { flex: 1; }

.alert { border-radius: var(--radius); padding: 12px 14px; font-size: 15px; }
.alert--error { background: var(--brand-tint); color: var(--danger); }
.alert--ok { background: var(--ok-tint); color: var(--ok); }
.alert--warn { background: var(--warn-tint); color: var(--warn); }

.foot { text-align: center; margin: 0; color: #444; }
.secured { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 12px; padding-top: 8px; }

.card { background: #fff; border: 0; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { display: flex; align-items: center; gap: 12px; min-height: 56px; border-top: 1px solid #EEE; }
.list li:first-child { border-top: 0; }
.list .grow { flex: 1; display: flex; flex-direction: column; }
.list small { color: var(--muted); font-size: 13px; }
.chip { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 3px 10px; background: var(--line-soft); color: #222; }
.chip--ok { background: var(--ok-tint); color: var(--ok); }
.chip--warn { background: var(--warn-tint); color: var(--warn); }

.qr { align-self: center; background: #fff; border: 1.5px solid var(--line-soft); border-radius: 14px; padding: 14px; }
.qr svg { display: block; width: 200px; height: 200px; }
.keybox { background: #F7F7F7; border-radius: var(--radius); padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; }
.keybox code { font: 600 19px var(--font-display); letter-spacing: .14em; word-break: break-all; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; background: #F7F7F7; border-radius: 12px; padding: 14px; }
.codes code { font: 600 17px var(--font-display); letter-spacing: .04em; white-space: nowrap; padding: 8px 4px; background: #fff; border-radius: 10px; text-align: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.align-end { align-self: flex-end; min-height: 32px; display: flex; align-items: center; }

/* ---- account home ---- */
.hello { display: flex; align-items: center; gap: 14px; }
.hello__avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 700 22px var(--font-display); }
.hello small { display: block; color: var(--muted); font-size: 14px; font-weight: 500; }
.hello h1 { margin: 0; padding-bottom: 0; font-size: 36px; }
.hello h1::after { display: none; }
.app-row { gap: 14px !important; }
.app-row__mark { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font: 700 22px var(--font-display); }
.app-row__mark--soon { background: #D9D9D9; color: #555; }
.btn--pill { width: auto; height: 40px; padding: 0 18px; border-radius: 99px; font-size: 15px; background: var(--brand); color: #fff; }
.link-pill { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--brand); text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .shell > * { animation: rise .28s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}


.subsection { border-top: 1px solid var(--line-soft); padding-top: 14px; }
.subsection h3 { margin: 0; font: 700 18px var(--font-display); }
.subsection .lead { font-size: 14px; }

