/* fin-login.css — login screen (no shell). The environment layer shows
   behind one 400px glass card (top-anchored): the sidebar's wordmark lockup,
   a 20px title, kit fields, a full-width silver primary button.
   Page-scoped classes only, prefixed fin-login- .
   COMMENT RULE: never type an asterisk inside a CSS comment. */

/* The card is anchored to a fixed top, not centred: an error or a field
   message grows the card downward and the form never jumps under the cursor. */
.fin-login {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: var(--fin-s-5);
  padding: max(64px, 14vh) var(--fin-s-4) var(--fin-s-8);
}
.fin-login-card {
  position: relative; isolation: isolate;
  width: 100%; max-width: 400px;
  display: flex; flex-direction: column; gap: var(--fin-s-5);
  padding: var(--fin-s-7);
  border: 1px solid transparent; border-radius: var(--fin-r-xl);
  background:
    linear-gradient(var(--fin-glass-slab), var(--fin-glass-slab)) padding-box,
    var(--fin-rim-slab) border-box;
  backdrop-filter: var(--fin-blur-slab);
  -webkit-backdrop-filter: var(--fin-blur-slab);
  box-shadow: var(--fin-depth-slab);
  color: var(--fin-text-1);
}
.fin-login-lockup { gap: var(--fin-s-2); padding-bottom: var(--fin-s-5); border-bottom: 1px solid var(--fin-border); align-self: stretch; }
.fin-login-lockup .fin-lockup-wm { height: 22px; }
.fin-login-head { display: flex; flex-direction: column; gap: 6px; }
.fin-login-head h1 {
  margin: 0; font-family: var(--fin-font-display); font-size: var(--fin-fs-section); font-weight: var(--fin-fw-semi);
  letter-spacing: var(--fin-ls-section); line-height: 1.3; color: var(--fin-text-1);
}
.fin-login-sub { margin: 0; font-size: var(--fin-fs-meta); line-height: 1.45; color: var(--fin-text-3); }
.fin-login-fields { display: flex; flex-direction: column; gap: var(--fin-s-4); }

/* Password field with the show / hide toggle inside its right edge. */
.fin-login-pw { position: relative; display: block; }
.fin-login-pw > .fin-input { padding-right: calc(var(--fin-ctl-h) + var(--fin-s-1)); }
.fin-login-eye { position: absolute; top: 50%; right: var(--fin-s-1); transform: translateY(-50%); }
.fin-login-eye[aria-pressed="true"] { color: var(--fin-text-1); }

.fin-login-go { margin-top: var(--fin-s-1); }
/* The footer sits inside the card (on the glass, never on a bright streak of the background). */
.fin-login-foot { margin: calc(-1 * var(--fin-s-1)) 0 0; font-size: var(--fin-fs-micro); line-height: 1.4; color: var(--fin-text-3); text-align: center; }

@media (max-width: 480px) {
  .fin-login { padding: max(var(--fin-s-8), 12vh) var(--fin-s-4) var(--fin-s-6); }
  .fin-login-card { padding: var(--fin-s-6) var(--fin-s-5); gap: var(--fin-s-4); }
}
