/* Account pages (sign-in, MFA, error) are static server-rendered without MudBlazor's runtime. */
.ftf-account {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

/* The card keeps the light tokens in dark mode so the full-colour logo stays legible. */
.ftf-account__card {
  --ftf-surface: #FFFFFF;
  --ftf-text: #0B2E1C;
  --ftf-muted: #55675C;
  --ftf-line: #DCE5DF;
  --ftf-primary: #0A6530;
  width: 100%;
  max-width: 400px;
  background: var(--ftf-surface);
  color: var(--ftf-text);
  border: 1px solid var(--ftf-line);
  border-radius: 12px;
  padding: 32px 24px;
  box-sizing: border-box;
}

.ftf-account__card h1 { font-size: 1.5rem; font-weight: 600; margin: 24px 0 8px; }
.ftf-account__card p { color: var(--ftf-muted); margin: 0 0 16px; }

.ftf-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.ftf-field label { font-weight: 500; }
.ftf-field input {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #6F8277;
  border-radius: 8px;
  color: var(--ftf-text);
  background: var(--ftf-surface);
}
.ftf-field input:focus-visible { outline: 3px solid var(--ftf-primary); outline-offset: 1px; }

.ftf-button {
  font: inherit;
  font-weight: 500;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--ftf-primary);
  color: #FFFFFF;
  cursor: pointer;
}
.ftf-button:focus-visible { outline: 3px solid var(--ftf-text); outline-offset: 2px; }

.ftf-alert {
  border-left: 4px solid #B3261E;
  background: #FCEEEE;
  color: #5C1310;
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.ftf-key { font-family: ui-monospace, Consolas, monospace; word-break: break-all; }
.ftf-qr svg { width: 200px; height: 200px; display: block; margin: 0 auto 16px; }
.validation-message { color: #B3261E; font-size: 0.875rem; }

.ftf-culture { display: flex; gap: 12px; font-size: 0.875rem; }
.ftf-culture a { color: inherit; text-decoration: underline; }
.ftf-culture a[aria-current="true"] { font-weight: 700; text-decoration: none; }
.ftf-account__card > .ftf-culture { justify-content: flex-end; margin-bottom: 8px; color: var(--ftf-text); }

.ftf-recovery-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
a.ftf-button { display: block; text-align: center; text-decoration: none; box-sizing: border-box; }
