/* ---------- Signed-out bar ---------- */
.authbar {
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4) var(--space-6);
  background: var(--surface-nav);
  color: var(--on-nav);
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
}
.authbar__left, .authbar__right { display: none; }
.authbrand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--on-nav);
  cursor: pointer;
  text-decoration: none;
}
.authbrand__logo {
    width: 110px;
    height: 30px;
    object-fit: contain;
}

.navtext { background: none; border: 0; font: inherit; font-weight: 700; color: var(--on-nav); cursor: pointer; padding: var(--space-2) 0; display: inline-flex; align-items: center; gap: 4px; }
.navtext:hover { color: var(--on-nav-muted); }
.searchpill {
  display: flex; align-items: center; gap: var(--space-2);
  border: 1px solid var(--border-control); border-radius: var(--radius-md);
  background: var(--surface-card); padding: 0 var(--space-3); min-width: 190px;
}
.searchpill input { border: 0; background: none; color: var(--ink); font: inherit; padding: 9px 0; width: 100%; }
.searchpill { color: var(--ink-muted); }
.searchpill input:focus { outline: none; }
.searchpill:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* -------- Sign in ---------- */
html:has(.signin:not([hidden])),
body:has(.signin:not([hidden])) {
  height: 100%;
  overflow: hidden;
}

.signin {
  width: 90%;
  min-width: 1500px;
  display: grid;
  gap: 0;
  align-items: start;      /* was stretch: columns now sit at the top */
  min-height: 0;           /* was 600px: no forced extra height */
  padding-top: 0;

  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

@media (min-width: 900px) { .signin { grid-template-columns: 65% 35%; } }

.signin__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;  /* was center: photo sticks to the top */
  padding: 0 120px 0 var(--space-10);
  text-align: center;
  background: var(--surface-page);
}

.signin__panel {
  align-self: start;
  margin-top: 0;
}
.signin__art {
  /* ---- the three numbers you change ---- */
  --art-width: 1000px;   /* image size: change freely, there is no cap */
  --fade: 50px;        /* how soft the edges are, stays the same at any size */
  --art-up: 50px;      /* moves the image up (more negative = higher) */

  display: block;
  width: var(--art-width);
  max-width: none;      /* the column can't squeeze or clip it */
  height: auto;
  max-height: none;
  transform: translateY(var(--art-up));

  border: 0;
  border-radius: 0;
  box-shadow: none;

  /* feathered edges */
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
  -webkit-mask-composite: source-in;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image:
    linear-gradient(to right,  transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
  mask-composite: intersect;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

/* let the image spread past its column so the fade is never clipped */
.signin__aside {
  overflow: visible;
}.signin__panel { max-width: 550px; width: 100%; margin: 0 auto; padding: var(--space-10); display: flex; flex-direction: column; justify-content: center; padding-top:50px; }
.google-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3); }
.google-btn img { width: 20px; height: 20px; object-fit: contain; }
.sso { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); margin-top: var(--space-3); }
.ssobtn {
  border: 1px solid var(--border-control); background: var(--surface-card); color: var(--ink);
  border-radius: var(--radius-md); padding: 14px var(--space-2); font: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; text-align: center; overflow: hidden; text-overflow: ellipsis;
}
.ssobtn:hover { background: var(--surface-sunken); }
.rule { display: flex; align-items: center; gap: var(--space-3); color: var(--ink-muted); font-size: 13px; margin: var(--space-5) 0; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--border-hairline); }
.labelrow { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.labelrow .req { font-size: 12px; color: var(--ink-muted); font-weight: 500; }
.control--auth { background: var(--field-fill); border-color: var(--border-control); }
.pwwrap { position: relative; }
.pweye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; padding: 6px; cursor: pointer; color: var(--primary); font: inherit; font-size: 12px; font-weight: 700;
}
.linkline { color: var(--primary); font-weight: 700; text-decoration: underline; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
