/* h1v3MIND/ed site: account page. Builds on base.css and license.css (keybox, kv, lic-card, hives table). */
.acct-title { margin: 16px 0 18px; font-size: clamp(2.4rem, 1rem + 5vw, 5rem); }
.acct-title:focus { outline: none; }
.acct-title:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 6px; }
.acct-flash { font-size: .92rem; min-height: 0; margin: -6px 0 18px; }
/* empty live regions stay in the page (so screen readers announce them) but take no room */
.acct-flash:empty { margin: 0; }
.acct-flash.ok { color: var(--green); } .acct-flash.err { color: var(--red); } .acct-flash.info { color: var(--blue); }
.page-account .lead { margin-bottom: 24px; }

/* terminal windows with forms in them */
.acct-term .term-body { padding: 22px 24px 26px; font-size: 14px; overflow: visible; }
.acct-term .term-body > .lic-out:first-child p:first-child { margin-top: 0; }

/* sign in / create account tabs */
.acct-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: -4px 0 22px; border-bottom: 1px solid var(--line); }
.acct-tab {
  position: relative; margin-bottom: -1px; padding: 11px 14px 9px;
  font: 400 21px/1 var(--pixel); letter-spacing: .1em; text-transform: uppercase; color: var(--subtle);
  border: 1px solid transparent; border-bottom: 0;
}
.acct-tab:hover { color: var(--gold-2); }
.acct-tab[aria-selected="true"] { color: var(--gold-2); background: #070a0c; border-color: var(--line); }
.acct-tab[aria-selected="true"]::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--gold); }
.acct-tab:focus-visible { outline-offset: -4px; }

/* forms */
.acct-form { display: grid; gap: 18px; }
.acct-form > .lic-out:empty { min-height: 0; margin-top: -18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.f-label { font-size: 21px; line-height: 1; color: var(--gold); text-transform: uppercase; letter-spacing: .12em; }
.f-label .opt { color: var(--subtle); text-transform: none; letter-spacing: .04em; }
.f-line { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 8px 7px 12px; background: #070a0c; border: 1px solid var(--gold-line); }
.f-line:focus-within { border-color: var(--gold-2); box-shadow: 0 0 0 3px #efc77d33; }
.f-line.bad { border-color: var(--red); }
.f-line.bad:focus-within { box-shadow: 0 0 0 3px #f0a59633; }
.f-line .prompt { font-size: 24px; flex-shrink: 0; }
.f-line input {
  flex: 1; min-width: 0; padding: 5px 0; background: transparent; border: 0; outline: 0;
  font: 500 16px/1.4 var(--mono); letter-spacing: .02em; color: var(--gold-2); caret-color: var(--gold-2);
}
.f-line input::placeholder { color: #76858b88; }
.f-line input:disabled { color: var(--subtle); }
.f-line input:focus-visible { outline: none; }
/* browsers paint autofilled fields light: keep them dark */
.f-line input:-webkit-autofill { -webkit-text-fill-color: var(--gold-2); box-shadow: 0 0 0 40px #070a0c inset; caret-color: var(--gold-2); }
.f-show {
  flex-shrink: 0; padding: 6px 9px 5px; font: 400 17px/1 var(--pixel); letter-spacing: .08em; text-transform: uppercase;
  color: var(--subtle); border: 1px solid var(--line-soft);
}
.f-show:hover, .f-show[aria-pressed="true"] { color: var(--gold-2); border-color: var(--gold-line); }
.f-show:focus-visible { outline-offset: 1px; }
.f-hint { font-size: .8rem; line-height: 1.5; color: var(--subtle); }
.f-err { font-size: .82rem; line-height: 1.5; color: var(--red); }
.f-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.linkish {
  padding: 4px 0; color: var(--gold); font-size: .86rem; text-align: left;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.linkish:hover { color: var(--gold-2); }
.sub-form { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line); }

/* notices */
.acct-notice {
  margin: 0 0 26px; padding: 16px 18px; color: var(--muted); font-size: .92rem;
  border: 1px solid var(--gold-line); border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, var(--gold-bg), transparent 85%);
}
.acct-notice b { color: var(--gold-2); }
.acct-notice .em, .acct-notice code { color: var(--text); overflow-wrap: anywhere; }
.acct-notice .f-actions { margin-top: 12px; }
.acct-notice .lic-out:empty { min-height: 0; }
.acct-notice.err { border-color: #f0a59666; border-left-color: var(--red); background: linear-gradient(90deg, var(--red-bg), transparent 85%); }

/* sections */
.acct-sec { margin-top: 52px; }
.acct-sec:first-of-type { margin-top: 0; }
.sec-h { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-size: 25px; line-height: 1; color: var(--gold); text-transform: uppercase; letter-spacing: .12em; }
.sec-h::before { content: "//"; color: var(--gold-line); }
.sec-h::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.me-card .kv { margin-top: 0; }
.me-actions { margin-top: 18px; }
.lic-card .lic-out { margin-top: 12px; }
.lic-card .lic-out:empty { margin-top: 0; min-height: 0; }

/* alpha */
.alpha-dl { margin-top: 16px; }
.alpha-out { margin-top: 14px; }
.alpha-out:empty { margin-top: 0; min-height: 0; }
.alpha-out a { color: var(--gold-2); }
#form-redeem .dim { margin-bottom: -4px; }
#form-redeem .btn, .acct-form .f-actions .btn-gold:not(.btn-sm) { min-width: 150px; }
.run-mini { margin-top: 26px; }
.run-mini .h-md { margin-bottom: 12px; }
.run-mini .term-body { font-size: 13px; }

/* licenses */
.lic-list { display: grid; gap: 22px; }
.lic-list:empty { display: none; }
#lic-out { margin-bottom: 14px; }
#lic-out:empty { margin-bottom: 0; min-height: 0; }
.acct-lic { margin-top: 0; transition: background-color .4s; }
.acct-lic.is-new { background: linear-gradient(180deg, var(--gold-bg), var(--panel) 55%); border-color: var(--gold-line); }
.acct-lic.is-off .lic-plan { color: var(--muted); }
.acct-lic h3.lic-plan, .sub-card h3.lic-plan { margin: 0; }
.acct-lic .kv { margin-top: 18px; }
.reveal-box {
  margin-top: 18px; padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px;
  border: 1px dashed var(--gold); background: #070a0c; color: var(--gold-2); font-size: .92rem;
}
.reveal-box p { flex: 1 1 260px; }
.acct-lic .keybox { margin-top: 18px; }
.acct-lic .keybox .warn { margin-top: 18px; font-size: 20px; }
.acct-lic .keybox .muted-p { margin-top: 12px; }
.acct-lic .keybox .muted-p b { color: var(--text); font-weight: 600; }
.key:focus { outline: none; }
.key:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; }
.lic-actions { margin-top: 18px; }
.billing-hint:empty { display: none; }
.confirm-box { margin-top: 14px; padding: 16px 18px; border: 1px solid #f0a59666; background: var(--red-bg); font-size: .9rem; color: var(--muted); }
.confirm-box b { color: var(--text); }
.confirm-box p + p { margin-top: 6px; }
.confirm-box .f-actions { margin-top: 14px; }
.btn-danger { color: var(--red); --b: #f0a59699; }
.btn-danger:hover { background: var(--red); border-color: var(--red); color: #0c1115; text-shadow: none; }
.btn-danger:focus-visible { outline-color: var(--red); }
.acct-lic .hives-title { font-size: 1rem; }
.claim { margin-top: 20px; }

/* subscribe */
.sub-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; }
.sub-price { display: flex; align-items: baseline; gap: 6px; }
.sub-price .amt { font: 900 2.6rem/1 var(--display); font-stretch: 60%; color: var(--text); }
.sub-price .per { color: var(--subtle); font-size: .9rem; }
.sub-copy { margin: 12px 0 18px; color: var(--muted); font-size: .92rem; max-width: 46em; }
.sub-closed { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; color: var(--muted); font-size: .92rem; }

/* two-step sign-in */
.f-intro { color: var(--muted); font-size: .9rem; }
.tf-head { display: flex; align-items: flex-start; gap: 14px; color: var(--muted); font-size: .92rem; }
.tf-head .badge { flex-shrink: 0; margin-top: 2px; }
.tf-card .f-actions { margin-top: 16px; }
.tf-steps { display: grid; gap: 10px; }
.tf-steps li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; color: var(--muted); font-size: .9rem; }
.tf-steps .n { font-size: 22px; color: var(--gold); }
.tf-steps + .tf-qr-row, .tf-qr-row + .tf-steps { margin-top: 18px; }
#form-tf-enable { margin-top: 14px; }
.tf-qr-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 26px; }
.tf-qr { flex-shrink: 0; padding: 0; background: #fff; line-height: 0; box-shadow: 0 0 0 1px var(--line), 0 0 40px #efc77d18; }
.tf-qr canvas { display: block; width: 208px; height: 208px; image-rendering: pixelated; }
.tf-key { flex: 1 1 220px; min-width: 0; display: grid; gap: 10px; justify-items: start; }
.tf-k { font-size: 19px; color: var(--subtle); text-transform: uppercase; letter-spacing: .1em; }
.tf-secret { font: 700 1.05rem/1.5 var(--mono); letter-spacing: .08em; color: var(--gold-2); overflow-wrap: anywhere; user-select: all; }
/* the otpauth: link only helps on a phone, where the authenticator app is */
.tf-open { display: none; }
@media (pointer: coarse), (max-width: 640px) { .tf-open { display: inline-flex; } }
#tf-codes:focus { outline: none; }
#tf-codes .warn { font-size: 20px; }
.tf-codes-why { margin-top: 10px; color: var(--muted); font-size: .88rem; }
.tf-codelist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 16px 0; padding: 16px; background: #070a0c; border: 1px solid var(--gold-line); }
.tf-codelist code { display: block; padding: 0; background: none; font: 700 1rem/1.6 var(--mono); letter-spacing: .08em; color: var(--gold-2); text-align: center; user-select: all; }
.tf-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 10px; color: var(--text); cursor: pointer; }
.tf-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--gold); }
.tf-check input:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.tf-low { margin-top: 12px; padding: 10px 12px; color: var(--gold-2); font-size: .88rem; border-left: 3px solid var(--gold); background: var(--gold-bg); }
#tf-out-acct { margin-top: 14px; }
#tf-out-acct:empty { margin-top: 0; min-height: 0; }
#form-2fa > .linkish { justify-self: start; }

/* nav: keep the page's own link from looking like a button to press */
.nav [aria-current="page"] { color: var(--gold-2); border-color: var(--gold-line); }

@media (max-width: 640px) {
  .acct-term .term-body { padding: 18px 16px 20px; }
  .acct-tab { padding: 10px 11px 8px; font-size: 19px; }
  .f-label { font-size: 19px; }
  .acct-form .f-actions .btn-gold:not(.btn-sm), #form-redeem .btn, .alpha-dl, #sub-btn { width: 100%; }
  .sec-h { font-size: 22px; }
  .lic-card { padding: 20px 16px; }
  .reveal-box .btn { width: 100%; }
  .acct-sec { margin-top: 44px; }
}
