/* JTS: login page (extends style.css) */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--bg-soft); }

/* Left: brand panel */
.auth__aside { position: relative; isolation: isolate; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 40px clamp(28px, 4vw, 56px); }
.auth__aside > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; z-index: -2; }
.auth__aside::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(6, 4, 77, .55) 0%, rgba(6, 4, 77, .88) 55%, rgba(6, 4, 77, .97) 100%); }
.auth__brand { display: inline-flex; background: #fff; padding: 14px 18px; border-radius: var(--r-md); align-self: flex-start; box-shadow: var(--shadow-md); }
.auth__pitch h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; max-width: 16ch; }
.auth__pitch p { color: rgba(255, 255, 255, .82); max-width: 42ch; }
.auth__points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.auth__points li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.auth__points .i { color: #ffb489; }

/* Right: form */
.auth__main { display: flex; flex-direction: column; justify-content: center; padding: 32px var(--gutter); }
.auth__card { width: 100%; max-width: 420px; margin-inline: auto; }
.auth__back { display: flex; width: fit-content; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); font-weight: 600; text-decoration: none; margin-bottom: 20px; }
.auth__back:hover { color: var(--navy-800); }
.auth__back .i { transform: scaleX(-1); width: 18px; height: 18px; }
.auth__mobile-logo { display: none; margin-bottom: 24px; }
.auth__card h1 { font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 6px; }
.auth__lead { color: var(--muted); margin-bottom: 28px; }

.pw-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted);
  display: grid; place-items: center; border-radius: var(--r-sm);
}
.pw-toggle:hover { color: var(--navy-800); background: var(--bg-soft); }
.control--pw .input { padding-right: 52px; }

.auth__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -2px 0 22px; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 500; color: var(--ink); }
.check input { width: 18px; height: 18px; accent-color: var(--navy-800); cursor: pointer; }
.link { color: var(--navy-800); font-weight: 700; text-decoration: none; background: none; border: 0; padding: 10px 0; }
.link:hover { color: var(--red); text-decoration: underline; }

.btn[aria-busy="true"] { pointer-events: none; opacity: .85; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite; display: none; }
.btn[aria-busy="true"] .spinner { display: block; }
.btn[aria-busy="true"] .i { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth__foot { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .95rem; }
.auth__foot a { color: var(--navy-800); font-weight: 700; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
  .auth__mobile-logo { display: inline-flex; }
  .auth__main { justify-content: flex-start; padding-top: 24px; }
}
