:root {
  color: #e8e7e3;
  background: #121311;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  background: #151613;
}

.login-shell {
  display: grid;
  width: min(760px, 100%);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  align-items: center;
  gap: 72px;
}

.identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border: 1px solid #d97855;
  border-radius: 8px;
  color: #f2a17f;
  font-family: Georgia, serif;
  font-size: 32px;
}

h1,
p {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 24px;
  font-weight: 680;
}

p {
  margin-top: 5px;
  color: #898d85;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-left: 42px;
  border-left: 1px solid #343630;
}

.form-heading {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
}

label {
  color: #a2a59e;
  font-size: 11px;
  font-weight: 650;
}

input,
button {
  width: 100%;
  height: 43px;
  border-radius: 6px;
  font: inherit;
  letter-spacing: 0;
}

input {
  margin-bottom: 5px;
  padding: 0 12px;
  border: 1px solid #42453e;
  outline: none;
  color: #f1f0ec;
  background: #1c1d1a;
}

input:focus {
  border-color: #e88964;
  box-shadow: 0 0 0 2px rgb(232 137 100 / 12%);
}

button {
  border: 0;
  cursor: pointer;
  color: #171612;
  background: #e88964;
  font-size: 13px;
  font-weight: 750;
}

button:hover {
  background: #f09a76;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-error {
  min-height: 18px;
  color: #f28b7e;
  font-size: 11px;
}

@media (max-width: 640px) {
  body {
    place-items: start center;
    padding: max(56px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
  }

  .login-shell {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .identity {
    align-items: center;
  }

  .login-form {
    padding: 0;
    border: 0;
  }

  input,
  button {
    height: 48px;
    font-size: 16px;
  }

  button {
    font-size: 14px;
  }
}
