/* Foll · private access. The gate wears the same chrome as the workspace it
   opens: the Foll lockup and product name in a hairline header that clears the
   status bar, one measured panel, and the shared control geometry. Only the
   presentation is defined here; the access behaviour lives in entry.mjs.

   The page loads style.css, so the device insets arrive as --safe-*; they are
   not read from env() a second time here. */
:root {
  font-family: var(--su-font, Urbanist, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif);
  --entry-gutter: max(16px, var(--safe-left));
}
body { min-height: 100dvh; }

.entry-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: calc(56px + var(--safe-top));
  padding: var(--safe-top) max(16px, var(--safe-right)) 0 var(--entry-gutter);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.entry-brand { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.entry-brand img { display: block; width: auto; height: 26px; }
.entry-brand .mark-on-dark { display: none; }
:root[data-appearance='dark'] .entry-brand .mark-on-light { display: none; }
:root[data-appearance='dark'] .entry-brand .mark-on-dark { display: block; }
.entry-header > span, .entry-header .app-name {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 1.125rem; font-weight: 600; line-height: 1.2; letter-spacing: -.02em;
}
.entry-header .release-label { color: var(--muted); font-size: .75rem; font-weight: 500; letter-spacing: 0; }

.entry-main {
  display: flex; justify-content: center; width: 100%; max-width: none; margin: 0;
  padding: clamp(28px, 7vh, 88px) var(--entry-gutter) calc(48px + var(--sudu-tool-footer, 24px));
}
.entry-panel { width: 100%; max-width: 440px; }
.entry-eyebrow { margin: 0 0 12px; color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
#entry-title, .entry-panel h1 {
  margin: 0 0 12px; font-size: 2.125rem; font-weight: 600;
  line-height: 1.12; letter-spacing: -.035em;
}
.entry-intro { margin: 0 0 24px; max-width: 34ch; color: var(--muted); font-size: 1rem; line-height: 1.5; }
#entry-message { margin: 0 0 20px; padding: 0 0 0 12px; border-left: 2px solid var(--ink); font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; }
#entry-message:empty { display: none; }
.entry-error { font-weight: 500; }

#entry-form > label { display: block; margin: 0 0 16px; font-size: .875rem; font-weight: 500; line-height: 1.45; }
#entry-form input {
  display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--field); color: var(--ink);
  font-family: inherit; font-size: 1rem; line-height: 1.4;
  box-shadow: none; outline: none;
}
/* One hairline per edge. Focus recolours it and adds nothing. */
#entry-form input:focus { border-color: var(--ink); box-shadow: none; outline: none; }
.entry-password-wrap { position: relative; display: block; }
.entry-password-wrap input { padding-right: 82px !important; }
#entry-show {
  position: absolute; right: 1px; top: 1px; bottom: 1px;
  min-width: 70px; min-height: 44px; padding: 8px;
  border: 0; border-radius: 6px; background: transparent;
  font-size: .8125rem; font-weight: 500;
}
#entry-form .entry-password-wrap input { min-height: 46px; }
.entry-submit {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--primary); border-radius: 6px;
  background: var(--primary); color: var(--on-primary);
  font-family: inherit; font-size: .9375rem; font-weight: 600; line-height: 1.4;
  text-align: center; text-decoration: none;
}
.entry-submit:disabled { opacity: .45; }
.entry-link {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 44px; margin: 8px 0 0; padding: 8px 0;
  border: 0; border-radius: 6px; background: transparent;
  color: var(--ink); font-size: .875rem; line-height: 1.5;
  text-align: center; text-decoration: none;
}
.entry-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.entry-footnote { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.entry-help { color: var(--muted); font-size: .8125rem; }
#entry-account-name { overflow-wrap: anywhere; }
.entry-panel :where(button, a):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (min-width: 700px) and (min-height: 500px) {
  :root { --entry-gutter: max(32px, var(--safe-left)); }
  .entry-header {
    height: calc(60px + var(--safe-top));
    padding-right: max(32px, var(--safe-right));
  }
  .entry-brand img { height: 28px; }
  .entry-header > span, .entry-header .app-name { font-size: 1.25rem; gap: 10px; }
  #entry-title, .entry-panel h1 { font-size: 2.5rem; letter-spacing: -.04em; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
@media (forced-colors: active) {
  #entry-form input:focus { border-color: Highlight; }
  .entry-submit { border-color: ButtonText; }
}
