/* The sign-in page's steps and its panel (templates/auth/login.html,
   static/js/joripo-signin-steps.js). Colours only from tokens.css, through
   the sign-in shell's names (templates/auth/_shell.html). */

.fixed { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
         font-size: 12.5px; color: var(--ink-2); margin: 0 0 14px; flex-wrap: wrap; }
.fixed b { font-size: 14.5px; color: var(--ink); overflow-wrap: anywhere; }
.fixed a { font-size: 12px; font-weight: 400; }
.keep { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; color: var(--ink);
        font-size: 13px; margin: 0 0 14px; cursor: pointer; }
.keep input { display: inline-block; width: 16px; height: 16px; margin: 2px 0 0; padding: 0;
              flex: none; accent-color: var(--accent); }
.keep .hint { display: block; margin-top: 1px; }

/* Without the script every field shows and the step buttons do not. */
html:not(.si-js) [data-si-only] { display: none !important; }
.si-step[hidden] { display: none; }
.si-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.si-actions button { margin-top: 0; }
button.si-link { width: auto; min-height: 0; padding: 4px 0; margin: 0; background: none; border: 0;
                 color: var(--accent); font: 500 13px var(--fb); cursor: pointer; text-align: center; }
button.si-link:hover { background: none; text-decoration: underline; }
.si-chosen button.si-link { font-size: 12px; text-align: left; padding: 0; }
.si-said { margin: -6px 0 12px; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.si-said.is-bad { color: var(--critical); }
.si-said[hidden] { display: none; }

.si-progress { display: flex; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0;
               font-size: 11.5px; color: var(--muted); counter-reset: si; }
.si-progress[hidden] { display: none; }
.si-progress li { flex: 1 1 0; padding-top: 6px; border-top: 3px solid var(--line); counter-increment: si; }
.si-progress li::before { content: counter(si) ". "; }
.si-progress li.is-done { border-top-color: var(--brand-200); }
.si-progress li.is-on { border-top-color: var(--accent); color: var(--ink); font-weight: 600; }

/* The panel beside the card: Joripo's points, one at a time. */
.si-tips { position: relative; display: flex; flex-direction: column; justify-content: center;
           min-height: 320px; padding: 34px; border-radius: 16px; color: var(--ink);
           background: linear-gradient(160deg, var(--brand-50), var(--surface) 70%);
           border: 1px solid var(--line); box-shadow: var(--shadow-2); overflow: hidden; }
.si-tips-eyebrow { margin: 0 0 18px; font: 650 11.5px/1.2 var(--fd); letter-spacing: .13em;
                   text-transform: uppercase; color: var(--accent); }
.si-tips-list { position: relative; list-style: none; margin: 0; padding: 0; min-height: 150px; }
.si-tip { position: absolute; inset: 0 0 auto 0; opacity: 0; visibility: hidden;
          transition: opacity .45s ease, visibility 0s linear .45s; }
.si-tip.is-shown { position: relative; opacity: 1; visibility: visible; transition: opacity .45s ease; }
.si-tip-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
              border-radius: 12px; background: var(--brand-100); color: var(--accent); margin-bottom: 14px; }
.si-tip h2 { margin: 0 0 8px; font: 650 21px/1.25 var(--fd); letter-spacing: -.01em; }
.si-tip p { margin: 0; color: var(--ink-2); font-size: 14.5px; max-width: 46ch; }
.si-tips-dots { display: flex; gap: 8px; margin-top: 22px; }
.si-dot { width: 10px; min-height: 0; height: 10px; padding: 0; margin: 0; border-radius: 50%;
          background: var(--line-2); border: 0; cursor: pointer; }
.si-dot:hover { background: var(--brand-200); }
.si-dot.is-on { width: 26px; border-radius: 99px; background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .si-tip { transition: none; } }
@media (max-width: 899px) {
  .si-tips { min-height: 0; padding: 22px 20px; }
  .si-tips-list { min-height: 0; }
  .si-tip h2 { font-size: 17px; }
}


/* The whole screen (owner, October 2026): the sign-in panel on one side,
   full height, and the picture with Joripo's points on the other. On a
   phone the picture is a short band above the points, under the card. */
body:has(> .auth-wrap.with-aside) { padding: 0; align-items: stretch; background: var(--surface); }
body > .auth-wrap.with-aside { max-width: none; min-height: 100vh; min-height: 100dvh; gap: 0; }
body > .auth-wrap.with-aside > .card { display: flex; flex-direction: column; justify-content: center;
  border: 0; border-radius: 0; box-shadow: none; padding: 48px clamp(24px, 6vw, 88px); max-width: none; }
body > .auth-wrap.with-aside > .card > * { width: 100%; max-width: 440px; margin-left: auto; margin-right: auto; }
body > .auth-wrap.with-aside > .card > a.brand { width: 100%; }
body > .auth-wrap.with-aside > .card h1 { font-size: 28px; }
.si-tips { isolation: isolate; }
.si-photo, .si-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.si-photo img { object-fit: cover; object-position: center 35%; }
.si-photo { z-index: -1; }
.si-photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 40, 32, .10) 0%, rgba(10, 40, 32, .55) 55%, rgba(10, 40, 32, .86) 100%); }
body > .auth-wrap.with-aside > .si-tips { border: 0; border-radius: 0; box-shadow: none; justify-content: flex-end;
  padding: clamp(28px, 5vw, 64px); color: #fff; background: #1d4f43; }
body > .auth-wrap.with-aside > .si-tips .si-tips-eyebrow { color: #cfe9df; }
body > .auth-wrap.with-aside > .si-tips .si-tip p { color: rgba(255, 255, 255, .9); }
body > .auth-wrap.with-aside > .si-tips .si-tip-ico { background: rgba(255, 255, 255, .16); color: #fff; }
body > .auth-wrap.with-aside > .si-tips .si-dot { background: rgba(255, 255, 255, .45); }
body > .auth-wrap.with-aside > .si-tips .si-dot.is-on { background: #fff; }
body > .auth-wrap.with-aside > .si-tips .si-tip h2 { font-size: clamp(21px, 2vw, 28px); }
@media (min-width: 900px) {
  body > .auth-wrap.with-aside > .card { flex: 0 0 min(560px, 44vw); }
  body > .auth-wrap.with-aside > .si-tips { flex: 1 1 auto; min-height: 100vh; min-height: 100dvh; }
}
@media (max-width: 899px) {
  body > .auth-wrap.with-aside { min-height: 0; }
  body > .auth-wrap.with-aside > .card { padding: 28px 20px 24px; justify-content: flex-start; }
  body > .auth-wrap.with-aside > .si-tips { min-height: 260px; padding: 24px 20px; }
}
