* {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.login-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 52px);
}

.login-shell {
  width: min(470px, 100%);
}

.login-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  padding: 34px 40px 38px;
}

.brand {
  width: 220px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  overflow: hidden;
  color: var(--hm-red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 950;
  letter-spacing: .06em;
}

.login-heading {
  text-align: center;
}

.login-heading h1 {
  margin: 0;
  color: #2f241b;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0;
}

.login-heading p {
  margin: 8px 0 26px;
  color: var(--muted);
  font-size: 14px;
}

.hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.hint span {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--green);
}

.login-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: #4d3524;
  font-size: 14px;
  font-weight: 900;
}

.field input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 15px;
  outline: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(138, 95, 61, 0.12);
}

.field input::placeholder {
  color: #b39476;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 2px;
  font-size: 13px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6f4f34;
  cursor: pointer;
}

.remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.find-link {
  color: var(--green);
  font-weight: 900;
  white-space: nowrap;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b39476;
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

@media (max-width: 520px) {.login-page {
    padding: 16px;
  }

  .login-card {
    padding: 26px 20px;
  }

  .brand {
    width: 190px;
    height: 74px;
  }

  .brand img {
    width: 190px;
    height: 135px;
  }

  .login-heading h1 {
    font-size: 28px;
  }

  .form-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

.login-page {
  background:
    linear-gradient(180deg, rgba(159, 232, 112, 0.18), transparent 42%),
    #fff;
}

.login-card {
  border-color: var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.brand {
  width: auto;
  height: auto;
  justify-content: center;
  margin-bottom: 28px;
  overflow: visible;
}

.brand img {
  display: none;
}

.login-heading h1 {
  color: var(--ink);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.02;
  font-weight: 950;
}

.login-heading p,
.field span,
.remember,
.divider,
.field input::placeholder {
  color: var(--muted);
}

.field span {
  font-weight: 900;
}

.field input {
  border-color: var(--line);
  border-radius: 8px;
  background: #fff;
}

.field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(159, 232, 112, 0.28);
}

.remember input {
  accent-color: var(--green);
}

.find-link {
  color: var(--accent);
}

@media (min-width: 721px) {.login-page {
    min-height: 100svh;
    padding: 20px;
  }

  .login-card {
    padding: 26px 34px 28px;
  }

  .brand {
    margin-bottom: 18px;
  }

  .login-heading h1 {
    font-size: clamp(34px, 4vw, 48px);
  }

  .login-heading p {
    margin-bottom: 18px;
  }

  .login-form {
    gap: 12px;
  }

  .field input,
  .login-button,
  .signup-button {
    height: 44px;
  }
}
