:root {
  color-scheme: light;
  --ink: #263d5b;
  --sky: #49b6e5;
  --paper: #ffffff;
  --border: #a8d6ef;
  --sketch-radius: 22px 8px 20px 7px / 8px 20px 7px 22px;
  font-family: "Delius Swash Caps", "Segoe Script", cursive;
  color: var(--ink);
  background: #fafdff;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: var(--ink); text-underline-offset: .25em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.auth-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem max(1.5rem, calc((100vw - 70rem) / 2)); border-bottom: 2px solid var(--border); background: var(--paper); }
.auth-header a { color: var(--ink); font-size: 1.65rem; text-decoration: none; }
.auth-header span { font-size: .9rem; }
.auth-layout { width: min(70rem, calc(100% - 3rem)); margin: 0 auto; min-height: calc(100vh - 5rem); display: grid; grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); align-items: center; justify-content: space-between; gap: 3rem; padding: 3rem 0 5rem; }
.auth-card { padding: clamp(1.5rem, 4vw, 2.5rem); border: 2px solid var(--border); border-radius: var(--sketch-radius); background: var(--paper); box-shadow: 6px 7px 0 #e0f2fc; }
.auth-card h1 { margin: 0 0 .8rem; font-size: clamp(2.3rem, 5vw, 3.2rem); font-weight: 400; line-height: 1.2; }
.heading-scribble { display: block; width: 9rem; height: 1rem; margin: -.3rem 0 1.3rem; color: var(--sky); }
.auth-card p { line-height: 1.6; }
.eyebrow { margin: 0 0 .6rem; color: #287eac; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.auth-card form { display: grid; gap: 1rem; margin: 1.7rem 0 0; }
.auth-card form p, .form-field { display: grid; gap: .4rem; margin: 0; }
.auth-card label { display: block; font-weight: 700; }
.auth-card input:not([type="hidden"]) { width: 100%; padding: .8rem .9rem; border: 2px solid var(--border); border-radius: 13px 5px 12px 5px / 5px 12px 5px 13px; background: var(--paper); color: var(--ink); font: inherit; }
.auth-card input:focus { border-color: var(--ink); }
.auth-card button { justify-self: start; min-height: 3rem; padding: .6rem 1.5rem; border: 2px solid var(--ink); border-radius: var(--sketch-radius); background: var(--ink); box-shadow: 4px 5px 0 var(--sky); color: #fff; font: inherit; font-size: 1.1rem; cursor: pointer; }
.auth-card button:hover { transform: translate(-1px, -1px); box-shadow: 5px 6px 0 var(--sky); }
.auth-card button:active { transform: translate(2px, 2px); box-shadow: 2px 3px 0 var(--sky); }
.form-error, .auth-card .errorlist { padding: .7rem .9rem; border: 1px solid #b3552e; border-radius: .4rem; color: #8c3d20; background: #fff4ee; }
.auth-card .errorlist { margin: 0; padding-left: 2rem; }
.auth-footnote { margin: 1.5rem 0 0; }
.auth-illustration { display: block; width: min(100%, 27rem); height: auto; justify-self: center; transform: rotate(2deg); }

@media (max-width: 48rem) {
  .auth-layout { grid-template-columns: 1fr; min-height: 0; gap: 1.5rem; padding: 2rem 0 4rem; }
  .auth-illustration { width: min(12rem, 45vw); }
  .auth-header span { display: none; }
}
