:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #000;
  color: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  background: #000;
  color: #fff;
}

a {
  color: inherit;
}

.home-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vh, 4rem);
  padding: clamp(2rem, 5vw, 5rem);
}

.home-title {
  margin: 0;
  font-size: clamp(2.7rem, 9vw, 8rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 0.9;
  text-align: center;
  text-indent: 0.16em;
}

.art-link {
  display: block;
  width: min(100%, 64rem);
  overflow: hidden;
  background: #111;
  text-decoration: none;
}

.art-link img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: opacity 450ms ease, transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.art-link:hover img,
.art-link:focus-visible img {
  opacity: 0.82;
  transform: scale(1.018);
}

.art-link:focus-visible,
.header-brand:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}

.login-page {
  display: grid;
  grid-template-rows: auto 1fr;
}

.site-header {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.header-brand {
  display: inline-block;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: opacity 250ms ease;
}

.header-brand:hover {
  opacity: 0.6;
}

.login-main {
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem clamp(4rem, 10vh, 8rem);
}

.login-form {
  width: min(100%, 25rem);
}

.login-form h1 {
  margin: 0 0 3rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: 0.16em;
  text-align: center;
}

.field {
  margin-bottom: 2rem;
}

.field label {
  display: block;
  margin-bottom: 0.65rem;
  color: #bdbdbd;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  padding: 0.8rem 0;
  border: 0;
  border-bottom: 1px solid #555;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  transition: border-color 220ms ease;
}

.field input:focus {
  border-color: #fff;
  outline-offset: 4px;
}

.field input[aria-invalid="true"] {
  border-color: #e48a8a;
}

button {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background-color 220ms ease, color 220ms ease;
}

button:hover {
  background: #000;
  color: #fff;
}

.form-message {
  min-height: 1.25rem;
  margin: 1.25rem 0 0;
  color: #bdbdbd;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 30rem) {
  .home-main {
    justify-content: flex-start;
    padding-top: 12vh;
  }

  .home-title {
    letter-spacing: 0.1em;
    text-indent: 0.1em;
  }

  .art-link img {
    aspect-ratio: 4 / 5;
  }
}

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