/* Sign-in, sign-up, forgot, reset, confirm-email and not-found pages (outside the app shell).
   Colours, fonts and the shared components come from app.css; this file adds only the parts the boards
   need that app.css does not have. Loaded after app.css. Tokens only: no literal colours. */

.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-bar { border-bottom: 1px solid var(--rule); }
.auth-body {
  flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 64px;
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 40px 48px;
}
.auth-body.single { justify-content: center; }
.auth-form-col { flex: 1 1 360px; max-width: 400px; min-width: 0; }
.auth-body.single .auth-form-col { flex: 0 1 400px; }
.auth-aside { flex: 1 1 420px; display: flex; justify-content: center; min-width: 0; }
.auth-footer {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 4px 40px;
  border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.4; color: var(--graphite);
}

.stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.stack-s { display: flex; flex-direction: column; gap: 8px; }
.stack > * { min-width: 0; }
.stagger > * { animation: mw-in var(--d-slow) var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: 50ms; }
.stagger > *:nth-child(3) { animation-delay: 100ms; }
.stagger > *:nth-child(4) { animation-delay: 150ms; }
.stagger > *:nth-child(5) { animation-delay: 200ms; }
.stagger > *:nth-child(n+6) { animation-delay: 250ms; }

.field-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.field-msg { display: flex; flex-direction: column; gap: 4px; }
.field-msg:empty { display: none; }
.field-msg .ferr { font-size: 13px; line-height: 1.4; }
.pw-row { display: flex; align-items: flex-end; gap: 8px; flex-wrap: nowrap; }
.pw-row .in { flex: 1 1 auto; min-width: 0; }
.pw-toggle { min-width: 72px; }
.link-btn {
  display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; padding: 0;
  border: 0; background: transparent; color: var(--ink); font: 600 15px/1 var(--sans);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link-btn:hover { color: var(--ink-deep); }
.lenbar { height: 2px; margin-top: -2px; position: relative; overflow: hidden; pointer-events: none; }
.lenbar i {
  position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0);
  transition: transform var(--d-mid) var(--ease);
}
.rules { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 13px; line-height: 1.4; }
.rules li { display: flex; gap: 8px; }
.rules .st { margin-left: auto; font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.rules .ok { color: var(--text); }
.rules .bad { color: var(--correction-ink); }

.ledger { margin: 0; width: 100%; max-width: 540px; }
.ledger-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.ledger-head .sp { flex: 1; }
.ledger-note { padding: 16px 20px; border-top: 1px solid var(--rule); }
.ts { display: inline-block; width: 0.28em; }
.deduct { color: var(--deduct); }
.r0 { --i: 0; } .r1 { --i: 1; } .r2 { --i: 2; } .r3 { --i: 3; } .r4 { --i: 4; }
.d-500 { --d: 500ms; } .d-700 { --d: 700ms; } .d-900 { --d: 900ms; } .d-1100 { --d: 1100ms; }
.d-1300 { --d: 1300ms; } .d-1500 { --d: 1500ms; } .d-1600 { --d: 1600ms; }
.anim tbody tr {
  opacity: 0; transform: translateY(6px); animation: mw-rise var(--d-slow) var(--ease) forwards;
  animation-delay: calc(var(--i) * 50ms);
}
.anim .bank { display: inline-block; opacity: 0; animation: mw-fade 200ms var(--ease) forwards; animation-delay: var(--d); }
.anim .matched {
  background-size: 0% 100%; background-repeat: no-repeat; background-position: 0 0;
  animation: mw-mark var(--d-slow) var(--ease) forwards; animation-delay: var(--d);
}
.anim .late { opacity: 0; animation: mw-fade var(--d-slow) var(--ease) forwards; animation-delay: var(--d); }
@keyframes mw-rise { to { opacity: 1; transform: none; } }
@keyframes mw-fade { to { opacity: 1; } }
@keyframes mw-mark { to { background-size: 100% 100%; } }

@media (max-width: 600px) {
  .auth-body { gap: 40px; padding: 24px 16px 40px; }
  .auth-footer { padding: 4px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .stagger > * { animation: none; }
  .anim * { animation: none !important; opacity: 1 !important; transform: none !important; }
  .anim .matched { background-size: 100% 100% !important; }
  .lenbar i { transition: none; }
}

/* Language picker in the header of the public pages. */
.lang-pick { margin-left: auto; flex: 0 1 auto; min-width: 0; }
.lang-pick .lang-select { width: auto; max-width: 100%; min-width: 120px; font-size: 14px; }

/* Longer languages: dates and amounts in the example table never break, and the table scrolls inside its sheet
   instead of widening the page. */
.ledger { overflow-x: auto; }
.ledger .tbl td.mono, .ledger .tbl td .mono { white-space: nowrap; }
.ledger .tbl td, .ledger .tbl th { overflow-wrap: anywhere; }
.ledger .tbl th { white-space: normal; }
@media (max-width: 600px) {
  .auth-bar .wm { display: inline-flex; }
  .auth-bar { flex-wrap: nowrap; justify-content: space-between; }
  .ledger .tbl th, .ledger .tbl td { padding-left: 10px; padding-right: 10px; }
  .auth-body { padding-left: 16px; padding-right: 16px; }
}
