/* ─────────────────────────────────────────────────────────────────────────
   HORMACHUELOS — auth pages (log in, sign up, account)

   Same sky, same palette, one small card in the middle. Like the landing
   page: nothing loops, nothing blurs - the page paints once and idles.
   ───────────────────────────────────────────────────────────────────────── */

.auth-main {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 110px 20px 70px;
}

/* The card is the landing page's .card, just left-aligned for a form. */
.auth-card {
  text-align: left;
}

.auth-card h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.auth-sub {
  margin: 0 0 26px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azure-deep);
}

.field input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(10, 61, 143, 0.22);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: var(--azure);
  box-shadow: 0 0 0 3px rgba(14, 95, 203, 0.16);
}

.field .hint {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* The pricing buttons' look, as a form button. */
button.buy {
  width: 100%;
  border: 0;
  cursor: pointer;
}

a.buy {
  text-align: center;
}

button.buy:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.btn-quiet {
  background: #ffffff;
  border: 1px solid rgba(10, 61, 143, 0.25);
  color: var(--azure-deep);
  box-shadow: none;
}

.btn-quiet:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: none;
  filter: brightness(0.98);
}

.auth-msg {
  min-height: 21px;
  margin: 16px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
}

.auth-msg:empty {
  display: none;
}

.auth-msg.bad {
  color: #b3262d;
}

.auth-msg.good {
  color: #0b6b3a;
}

.auth-alt {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(10, 61, 143, 0.12);
  font-size: 14px;
  color: var(--ink-soft);
}

.auth-alt a {
  color: var(--azure);
  font-weight: 600;
  text-decoration: none;
}

.auth-alt a:hover {
  text-decoration: underline;
}

.account-email {
  color: var(--ink);
  word-break: break-all;
}

.account-row {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  text-align: center;
}

/* Usage synced from the desktop app. */
.usage-block {
  margin: 0 0 4px;
  padding-top: 20px;
  border-top: 1px solid rgba(10, 61, 143, 0.12);
  display: grid;
  gap: 11px;
}

.usage-block[hidden] {
  display: none;
}

.usage-block-head {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azure-deep);
}

.usage-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.usage-line strong {
  color: var(--ink);
  font-weight: 600;
}

.usage-updated {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* One rolling window: label, share left, a still bar, the reset line. */
.usage-window {
  display: grid;
  gap: 7px;
}

.usage-window-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.usage-window-top strong {
  color: var(--ink);
  font-weight: 600;
}

.usage-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(10, 61, 143, 0.12);
  overflow: hidden;
}

.usage-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--azure);
}

.usage-reset {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.usage-reset:empty {
  display: none;
}

/* Plans: upgrade or switch any time, even while a plan is active. */
.plan-block {
  margin: 24px 0 4px;
  padding-top: 20px;
  border-top: 1px solid rgba(10, 61, 143, 0.12);
  display: grid;
  gap: 10px;
}

.plan-block-head {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azure-deep);
}

.plan-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(10, 61, 143, 0.16);
  border-radius: 14px;
  background: #ffffff;
}

.plan-option.is-current {
  border-color: rgba(14, 95, 203, 0.45);
  background: rgba(14, 95, 203, 0.05);
}

.plan-option-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.plan-option-name span {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

.plan-choose {
  font-size: 13px;
  font-weight: 600;
  color: var(--azure);
  text-decoration: none;
  white-space: nowrap;
}

.plan-choose:hover {
  text-decoration: underline;
}

/* The usage-style chooser uses the same control as a button. */
button.plan-choose {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
}

.plan-current {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--azure-deep);
  white-space: nowrap;
}

.plan-note {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* Orders this account placed: the cards the checkout tracker already uses. */
.order-block {
  margin: 24px 0 4px;
  padding-top: 20px;
  border-top: 1px solid rgba(10, 61, 143, 0.12);
  display: grid;
  gap: 10px;
}

.order-block[hidden] {
  display: none;
}

.order-block-head {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azure-deep);
}

.order-block .pay-orders {
  margin: 0;
}

/* ── The account pill bar: Usage / Orders / Plan, plus a small Menu ──────
   The dashboard's tab bar, fitted into the account card: one white pill
   holding the sections - the one in use is filled - and the utility
   actions tucked behind Menu on the right. */

.acct-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 18px;
  padding: 6px 8px 6px 6px;
  border: 1px solid rgba(10, 61, 143, 0.14);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(10, 61, 143, 0.08);
}

.acct-bar[hidden],
.acct-panes[hidden] {
  display: none;
}

.acct-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.acct-tab {
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.acct-tab:hover {
  background: rgba(14, 95, 203, 0.08);
  color: var(--azure-deep);
}

.acct-tab[aria-selected="true"] {
  background: var(--azure-deep);
  color: #ffffff;
}

/* One tab's section; inactive tabs stay out of the flow. */
.acct-pane {
  display: grid;
  gap: 14px;
}

.acct-pane[hidden] {
  display: none;
}

/* Inside a tab the blocks drop their section dividers - the bar divides. */
.acct-pane .usage-block,
.acct-pane .order-block,
.acct-pane .plan-block {
  margin: 0;
  padding-top: 0;
  border-top: 0;
}

/* The dropdown behind Menu. */
.acct-menu-wrap {
  position: relative;
}

.acct-menu-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(10, 61, 143, 0.22);
  background: #ffffff;
  color: var(--azure-deep);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.acct-menu-btn:hover {
  background: #f4f8ff;
  transform: translateY(-1px);
}

.acct-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 6;
  display: grid;
  min-width: 168px;
  padding: 6px;
  border: 1px solid rgba(10, 61, 143, 0.14);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(10, 61, 143, 0.16);
}

.acct-menu[hidden] {
  display: none;
}

.acct-menu-item {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.acct-menu-item:hover {
  background: rgba(14, 95, 203, 0.08);
}

@media (max-width: 480px) {
  .acct-tab {
    padding: 8px 12px;
    font-size: 12.5px;
  }
}
