@import url("/vendor/inter/inter.css");

:root {
  --fg: #0a0a0a;
  --primary: #286bfe;
  --muted: #666666;
  --input: #cccccc;
  --hair: rgba(10, 10, 10, 0.08);
  --surface-2: rgba(10, 10, 10, 0.05);
  --red: #dc2626;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  color: var(--fg);
  background: #fff;
}
a { color: inherit; }
strong, b { font-weight: 500; }
img { display: block; max-width: 100%; }

.auth-page { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-form-col { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px; }
.auth-form-inner { width: 100%; max-width: 400px; margin: 0 auto; }
.auth-home { display: inline-flex; margin-bottom: 32px; }
.auth-logo { height: 30px; width: auto; }

.auth-h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; letter-spacing: -0.04em; margin: 0 0 10px; }
.auth-sub { font-size: 0.9375rem; line-height: 1.55; color: var(--muted); margin: 0 0 30px; }
.auth-h1 + form, .auth-h1 + .auth-stack { margin-top: 30px; }
.auth-sub a { color: var(--fg); text-decoration: underline; }

/* Same type as .auth-sub, but sitting inside the form's own 14px flex gap rather than the page's
   30px lead-in margin — it lives directly under the password field, not under the h1. */
.auth-forgot { margin: 0; text-align: left; }

form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { position: relative; }
.auth-field input {
  width: 100%; height: 56px; padding: 18px 16px 0; border: 1px solid var(--input);
  border-radius: 12px; font-family: inherit; font-size: 16px; outline: 0; background: #fff;
  transition: border-color 160ms ease;
}
.auth-field input:focus { border-color: var(--fg); }
.auth-field label {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 16px; pointer-events: none;
  transition: top 140ms ease, transform 140ms ease, font-size 140ms ease;
}
.auth-field input:focus + label,
.auth-field input:not(:placeholder-shown) + label { top: 8px; transform: translateY(0); font-size: 13px; }

/* The floating label is the input's adjacent sibling, so the toggle must come after it, never between. */
.auth-field.auth-field-pw input { padding-right: 52px; }
.auth-pw-toggle {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 9999px;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.auth-pw-toggle:hover { background: var(--surface-2); color: var(--fg); }
.auth-pw-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.auth-pw-toggle svg { display: block; width: 20px; height: 20px; }

.auth-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 32px; border-radius: 9999px; border: 0; cursor: pointer;
  background: var(--primary); color: #fff; font-family: inherit; font-size: 0.9375rem; font-weight: 400;
  margin-top: 6px; text-decoration: none; transition: background-color 220ms ease, color 220ms ease;
}
.auth-btn:hover:not(:disabled) { background: #000; color: #fff; }

.auth-alt { font-size: 0.9375rem; color: var(--muted); margin: 26px 0 0; }
.auth-alt a { color: var(--fg); text-decoration: underline; }
.auth-legal { font-size: 0.8125rem; color: var(--muted); line-height: 1.6; margin: 34px 0 0; }
.auth-legal a { color: var(--primary); text-decoration: underline; }

.auth-media-col { position: relative; margin: 16px; border-radius: 24px; overflow: hidden; }
.auth-media-col img { width: 100%; height: 100%; object-fit: cover; }
.auth-media-scrim { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(10,10,10,0.15), rgba(10,10,10,0)); }

.auth-solo { grid-template-columns: 1fr; }
.auth-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.auth-stack { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }

.auth-error { font-size: 0.8125rem; color: var(--red); margin: 0; padding: 0 2px; }

.auth-pwreqs { list-style: none; margin: 2px 0 0; padding: 0 2px; display: flex; flex-direction: column; gap: 6px; }
.auth-pwreqs li { font-size: 0.8125rem; color: var(--red); display: flex; align-items: center; gap: 8px; }
.auth-pwreqs li.ok { color: var(--muted); }
.auth-pwreqs li span { width: 12px; text-align: center; }

.auth-sent { font-size: 0.9375rem; line-height: 1.55; color: var(--muted); margin: 0 0 6px; }
.auth-sent-to { color: var(--fg); }
.auth-changelink { font-size: 0.9375rem; margin: 0 0 28px; }
.auth-changelink a { color: var(--fg); text-decoration: underline; }

.auth-wait { display: flex; align-items: center; gap: 9px; font-size: 0.875rem; color: var(--muted); margin: 0 0 22px; }
.auth-linkbtn {
  font-family: inherit; font-size: inherit; color: var(--fg); background: none; border: 0;
  padding: 0; text-decoration: underline; cursor: pointer;
}
.auth-linkbtn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 3px; }

.auth-resend {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; border: 0;
  border-radius: 9999px; background: var(--surface-2); color: var(--fg); font-family: inherit;
  font-size: 0.9375rem; font-weight: 400; cursor: pointer; transition: background-color 220ms ease, color 220ms ease;
}
.auth-resend:hover:not(:disabled) { background: #000; color: #fff; }
.auth-resend:disabled { opacity: 0.5; cursor: default; }

.spinner {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent; border-top-color: color-mix(in srgb, currentColor 25%, transparent);
  animation: auth-spin 0.8s linear infinite; vertical-align: middle;
}
.spinner-lg { width: 26px; height: 26px; border-width: 2.5px; color: var(--fg); }
@keyframes auth-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-media-col { display: none; }
  .auth-form-col { padding: 40px 24px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
