:root {
  color-scheme: dark;
  --black: #000;
  --panel: #0b0b0b;
  --white: #fff;
  --muted: #8b8b8b;
  --line: #282828;
  --soft-line: #181818;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { min-height: 100vh; margin: 0; overflow-x: hidden; background: var(--black); color: var(--white); }
button, input { font: inherit; }
.page-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(28rem, 0.85fr); }
.brand-panel { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 7vw, 7rem); border-right: 1px solid var(--soft-line); background: #000; }
.brand-panel img { display: block; width: min(29rem, 72%); height: auto; }
.login-panel { min-height: 100vh; display: grid; place-items: center; padding: 3rem clamp(2rem, 6vw, 6rem); background: var(--panel); }
.login-card { width: min(100%, 25rem); }
.kicker { margin: 0 0 1rem; color: var(--muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
h1, h2 { margin: 0; font-size: clamp(2.65rem, 5vw, 4rem); font-weight: 500; letter-spacing: -0.055em; line-height: 1; }
.supporting { margin: 1rem 0 2.75rem; color: var(--muted); font-size: 1rem; line-height: 1.55; }
form { display: grid; }
label { margin-bottom: 0.65rem; color: #d0d0d0; font-size: 0.82rem; font-weight: 500; }
input[type="email"], input[type="password"], input[type="text"] { width: 100%; height: 3.45rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: 0; outline: none; background: #111; color: var(--white); font-size: 1rem; transition: border-color 160ms ease, background 160ms ease; }
input::placeholder { color: #575757; }
input:focus { border-color: #747474; background: #141414; }
input[aria-invalid="true"] { border-color: #bd605e; }
.password-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 0.45rem; }
.text-button { padding: 0; border: 0; background: transparent; color: #aaa; cursor: pointer; font-size: 0.78rem; }
.text-button:hover, .text-button:focus-visible { color: var(--white); }
.field-error { min-height: 1.45rem; margin: 0.35rem 0 0; color: #d87d7a; font-size: 0.76rem; }
.form-options { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0.35rem 0 1.5rem; }
.remember { display: flex; align-items: center; gap: 0.55rem; margin: 0; color: var(--muted); }
.remember input { accent-color: #fff; }
.submit-button { width: 100%; min-height: 3.55rem; display: flex; align-items: center; justify-content: space-between; padding: 0 1.15rem; border: 1px solid var(--white); border-radius: 0; background: var(--white); color: var(--black); cursor: pointer; font-weight: 600; transition: background 160ms ease, color 160ms ease; }
.submit-button:hover { background: transparent; color: var(--white); }
.submit-button:disabled { cursor: wait; opacity: 0.65; }
.arrow { font-size: 1.3rem; }
.error-icon { width: 3rem; height: 3rem; display: grid; place-items: center; margin-bottom: 2rem; border: 1px solid #693b3b; border-radius: 50%; color: #d87d7a; font-size: 1.4rem; }
.success-view h2 { max-width: 10ch; font-size: clamp(2.25rem, 4vw, 3.4rem); line-height: 1.04; }
.toast { position: fixed; right: 1.5rem; bottom: 1.5rem; max-width: calc(100vw - 3rem); padding: 0.85rem 1rem; border: 1px solid var(--line); background: #161616; color: #ccc; font-size: 0.8rem; }
.is-entering { animation: enter 360ms ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 760px) {
  .page-shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: 38vh; justify-content: center; padding: 2.5rem; border-right: 0; border-bottom: 1px solid var(--soft-line); }
  .brand-panel img { width: min(15rem, 58vw); }
  .login-panel { min-height: 62vh; place-items: start center; padding: 3rem 1.5rem 4rem; }
  h1, h2 { font-size: 2.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
