@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/auth-static/OpenSans-VariableFont_wdthwght.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #111827;
  --muted: #64748b;
  --muted-panel: #f8fafc;
  --border: #cbd5e1;
  --input: #f8fafc;
  --primary: #0047bb;
  --primary-foreground: #f8fafc;
  --destructive: #dc2626;
  --ring: #94a3b8;
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  min-height: 100%;
  font-family: "Open Sans", Roboto, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-weight: 400;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.auth-page {
  display: grid;
  min-height: 100svh;
  background: var(--background);
}

.auth-panel {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

.sportable-logo {
  display: block;
  width: 10rem;
  color: var(--foreground);
}

.sportable-logo img {
  width: 100%;
  height: auto;
}

.auth-center {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
}

.login-form {
  display: flex;
  width: 100%;
  max-width: 20rem;
  flex-direction: column;
  gap: 1.5rem;
}

.login-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.login-copy h1 {
  margin: 0;
  color: var(--foreground);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2rem;
}

.login-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-wrap: balance;
}

.login-fields {
  display: grid;
  gap: 1.5rem;
}

.field {
  display: grid;
  gap: 0.75rem;
}

.field > span:first-child {
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
}

.field input {
  width: 100%;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--input);
  color: var(--foreground);
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.35);
}

.password-wrap {
  position: relative;
  display: block;
}

.password-wrap input {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #9ca3af;
  padding: 0.5rem 0.75rem;
}

.password-toggle:hover {
  color: #6b7280;
}

.password-toggle svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.password-toggle .eye-closed,
.password-toggle[aria-pressed="true"] .eye-open {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
  display: block;
}

.forgot-link {
  justify-self: end;
  margin-top: -1.25rem;
  font-size: 0.75rem;
  font-style: italic;
  line-height: 1rem;
  text-decoration: none;
  text-underline-offset: 4px;
}

.forgot-link:hover {
  text-decoration: underline;
}

.login-submit,
.button {
  display: inline-flex;
  width: 100%;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.login-submit:hover,
.button:hover {
  background: #003fa6;
}

.login-submit:focus-visible,
.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 71, 187, 0.32);
}

.form-error,
.alert {
  margin: 0;
  color: var(--destructive);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.auth-art {
  position: relative;
  display: none;
  overflow: hidden;
  background: var(--muted-panel);
}

.auth-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shell {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 1.5rem;
}

.card {
  width: min(100%, 32rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  padding: 2rem;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.card h1 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.muted {
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button.secondary {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
}

.button.secondary:hover {
  background: var(--muted-panel);
}

@media (min-width: 768px) {
  .auth-panel {
    padding: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .auth-page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .auth-art {
    display: block;
  }
}
