:root {
  --bg: #070709;
  --text: #f5f5f7;
  --muted: #d7d7dc;
  --field: #101014;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", sans-serif;
}

.page {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.panel {
  grid-column: 1;
  min-height: 100vh;
  display: flex;
  align-items: safe center;
  justify-content: center;
  padding: 32px 32px 72px;
}

.login {
  width: min(340px, 100%);
}

.login h1 {
  margin: 0 0 46px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.field span {
  font-size: 13px;
  color: var(--muted);
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  color: var(--text);
  background:
    linear-gradient(var(--field), var(--field)) padding-box,
    linear-gradient(90deg, #98ff98 0%, #389d38) border-box;
  font: inherit;
  font-size: 15px;
  outline: none;
}

.field input:focus {
  background:
    linear-gradient(#16161c, #16161c) padding-box,
    linear-gradient(90deg, #98ff98 0%, #389d38) border-box;
}

.forgot {
  display: block;
  margin: -4px 0 26px;
  color: var(--text);
  font-size: 13px;
  text-align: right;
}

.login button {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: linear-gradient(90deg, #77ca77 0%, #389d38 100%);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.login button:hover {
  filter: brightness(1.06);
}

.signup {
  display: block;
  margin-top: 22px;
  color: var(--text);
  font-size: 13px;
  text-align: center;
}

.hero {
  grid-column: 2;
  min-height: 100vh;
  background:
    linear-gradient(90deg, #070709 0%, rgba(7, 7, 9, 0.55) 8%, rgba(7, 7, 9, 0) 22%),
    url("/hero.jpg") center / cover no-repeat;
}

.credits {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  margin: 0;
  color: #f3f3f5;
  font-size: 13px;
  text-align: center;
}

a {
  color: inherit;
}

@media (max-width: 860px) {
  .page {
    grid-template-columns: 1fr;
  }

  .panel,
  .hero {
    grid-column: auto;
    min-height: 0;
  }

  .hero {
    min-height: 240px;
    order: -1;
  }

  .panel {
    padding: 40px 24px 24px;
  }

  .credits {
    position: static;
    padding: 8px 16px 28px;
  }
}
