/* Adapted from Relay Auth by Colorlib (https://colorlib.com/).
   License: CC BY 3.0 (https://creativecommons.org/licenses/by/3.0/).
   Scoped to the signed-out screens. */
.relay-auth-page { margin: 0; }
.relay-auth {
  color-scheme: light;
  --ink: #26323d;
  --muted: #65717e;
  --blue: #23558e;
  --accent: #23558e;
  --accent-surface: #f1f3f5;
  --line: #e2e6ea;
  --error: #86362d;
  background: white;
  color: var(--ink);
  font: 14px/1.5 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.relay-auth *, .relay-auth *::before, .relay-auth *::after { box-sizing: border-box; }
.relay-auth[hidden], .relay-auth [hidden] { display: none !important; }
.relay-auth a { color: var(--accent); text-decoration: none; }
.relay-auth :focus-visible { outline: 3px solid #3784d2; outline-offset: 3px; }
.relay-auth input, .relay-auth button { font: inherit; }
.relay-auth button { cursor: pointer; }
.relay-auth button:disabled { opacity: .7; cursor: default; }
.relay-auth fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.relay-auth .relay-skip { position: fixed; top: -100px; left: 16px; background: white; padding: 12px; z-index: 10; }
.relay-auth .relay-skip:focus { top: 16px; }
.relay-auth .relay-brand img { object-fit: contain; }
.relay-auth .relay-story-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.relay-auth .relay-step { margin: 0 0 16px; }
.relay-auth .relay-input-wrap { position: relative; }
.relay-auth input[data-password] { padding-right: 72px; }
.relay-auth input[aria-invalid="true"] { border-color: var(--error); background: #fffafa; }
.relay-auth .relay-reveal:hover { background: var(--accent-surface); }
.relay-auth .relay-hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.relay-auth .relay-options label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.relay-auth .relay-options input { margin: 0; width: 17px; height: 17px; accent-color: var(--accent); }
.relay-auth .relay-primary { display: flex; justify-content: center; align-items: center; width: 100%; padding: 12px 18px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: white; font-size: 14px; font-weight: 600; text-decoration: none; min-height: 48px; transition: background .18s ease, opacity .18s ease; }
.relay-auth .relay-primary:hover:not(:disabled) { background: #193f70; }
.relay-auth .relay-primary[aria-busy="true"] { cursor: wait; gap: 9px; opacity: 1; }
.relay-auth .relay-primary[aria-busy="true"]::before {
  content: "";
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .relay-auth .relay-primary[aria-busy="true"]::before { animation: relay-spin .75s linear infinite; }
}
@keyframes relay-spin { to { transform: rotate(1turn); } }
.relay-auth nav.relay-switch { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.relay-auth .relay-text-button { display: block; margin: 8px auto 0; min-height: 44px; border: 0; background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; font-size: 13px; }
.relay-auth .relay-error, .relay-auth .relay-notice { border: 1px solid #e5bdb7; background: #fff5f2; color: var(--error); border-radius: 7px; font-size: 14px; padding: 12px 15px; margin-bottom: 18px; overflow-wrap: anywhere; }
.relay-auth .relay-notice { color: var(--accent); background: #f1f3f5; border-color: var(--line); }
.relay-auth .relay-notice[data-state="info"] { color: var(--muted); background: #f7fafd; border-color: var(--line); }


/* Signed-out layout from preview/style.css. */
.relay-auth .relay-shell {
  display:grid;
  grid-template-columns:46% 54%;
  min-height:100svh;
  background:white;
}
.relay-auth .relay-story {
  background:#f1f3f5;
  padding:40px 12%;
  display:flex;
  flex-direction:column;
  position:relative;
  overflow:hidden;
}
.relay-auth .relay-brand {
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--blue);
  font-size:25px;
  letter-spacing:-1px;
  font-weight:700;
  text-decoration:none;
}
.relay-auth .relay-story-copy {
  margin-top:72px;
}
.relay-auth .relay-story h2 {
  font-size:clamp(38px,4.3vw,64px);
  font-weight:500;
  line-height:1.09;
  letter-spacing:-1.5px;
  margin:16px 0 24px;
}
.relay-auth .relay-eyebrow, .relay-auth .relay-step {
  text-transform:none;
  letter-spacing:0;
  color:var(--muted);
  font-weight:500;
  font-size:12px;
  margin-bottom:16px;
}
.relay-auth .relay-story-copy > p:last-child {
  max-width:300px;
}
.relay-auth .relay-illustration {
  position:relative;
  height:220px;
  margin-top:32px;
}
.relay-auth .relay-pass {
  width:min(100%,360px);
  margin:0 auto;
  padding:24px;
  border:1px solid #d8dde2;
  border-left:4px solid var(--blue);
  border-radius:12px;
  background:#fff;
  box-shadow:0 10px 24px rgba(32,43,54,.08);
}
.relay-auth .relay-pass-heading,.relay-auth .relay-pass-detail {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.relay-auth .relay-pass-heading {
  color:var(--muted);
  font-size:12px;
}
.relay-auth .relay-pass-heading i { color:var(--blue); font-size:18px; }
.relay-auth .relay-pass strong {
  display:block;
  margin:20px 0;
  color:var(--ink);
  font-size:28px;
  font-weight:600;
  line-height:1.2;
}
.relay-auth .relay-pass-rule { border-top:1px dashed #d8dde2; }
.relay-auth .relay-pass-detail {
  padding-top:16px;
  color:var(--muted);
  font-size:12px;
}
.relay-auth .relay-pass code {
  color:var(--ink);
  font:500 13px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;
  font-variant-numeric:tabular-nums;
}
.relay-auth .relay-story-footer {
  margin-top:auto;
  padding-top:28px;
  color:var(--muted);
  font-size:12px;
  display:flex;
  justify-content:space-between;
}
.relay-auth .relay-content {
  display:flex;
  flex-direction:column;
  padding:40px 12% 24px;
}
.relay-auth .relay-main {
  width:100%;
  max-width:400px;
  margin:auto;
  padding:36px 0;
}
.relay-auth h1 {
  font-size:36px;
  letter-spacing:-1px;
}
.relay-auth .relay-intro {
  margin-bottom:28px;
}
.relay-auth .relay-field {
  display:block;
  margin-bottom:16px;
}
.relay-auth .relay-field label {
  display:block;
  font-weight:600;
  font-size:12px;
  margin-bottom:8px;
}
.relay-auth .relay-field input {
  border:1px solid #c8d4e2;
  border-radius:7px;
  min-height:44px;
  padding:10px 12px;
  width:100%;
  background:white;
  color:var(--ink);
}
.relay-auth .relay-reveal {
  position:absolute;
  right:3px;
  top:3px;
  min-height:38px;
  border:0;
  background:transparent;
  color:var(--blue);
  font-size:12px;
  padding:0 12px;
}
.relay-auth .relay-options {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  min-height:24px;
  margin-bottom:8px;
  font-size:12px;
}
.relay-auth .relay-primary { margin-top:8px; }
.relay-auth .relay-switch {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:4px;
  text-align:center;
  font-size:13px;
  margin-top:20px;
}
.relay-auth .relay-footer {
  font-size:11px;
  color:var(--muted);
  text-align:center;
  margin:22px 0 0;
}

.relay-auth .relay-brand img { width: 31px; height: 31px; object-fit: contain; }
.relay-auth .relay-notice[data-state="success"] { color: #21745c; background: #edf8f2; border-color: #c6e8d7; }
.relay-auth a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .relay-auth .relay-shell { display: flex; flex-direction: column; }
  .relay-auth .relay-story { padding: 20px 24px; }
  .relay-auth .relay-brand { font-size: 24px; }
  .relay-auth .relay-story-copy, .relay-auth .relay-illustration, .relay-auth .relay-story-footer { display: none; }
  .relay-auth .relay-content { padding: 15px 26px 20px; flex: 1; }
  .relay-auth .relay-main { padding: 35px 0; }
  .relay-auth h1 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .relay-auth *, .relay-auth *::before, .relay-auth *::after { animation: none !important; transition: none !important; }
}
