:root {
  --bg-color: #fafafa;
  --fg-color: #333;
  --accent-color: #715344;
  --accent-color-dark: #3d211b;
  --input-bg-color: white;
  --input-fg-color: #333;
  --button-bg: linear-gradient(
    to bottom,
    transparent,
    transparent 50%,
    rgba(0 0 0 0.04)
  );
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #1a1a1a;
    --fg-color: #d4d4d4;
    --accent-color: #a3907c;
    --accent-color-dark: #8a715e;
    --input-bg-color: #4d4d4d;
    --input-fg-color: white;
    --button-bg: linear-gradient(
      to bottom,
      rgba(51, 51, 51, 1),
      rgba(51, 51, 51, 1) 50%,
      rgba(51, 51, 51, 0.96)
    );
  }
}

html,
body {
  position: relative;
  width: 100%;
  height: 100%;
}

body {
  background: var(--bg-color);
  color: var(--fg-color);
  margin: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  font-size: 14px;
}

a {
  color: var(--accent-color);
}

label {
  display: block;
}

input,
button,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  -webkit-padding: 0.4em 0;
  padding: 0.4em;
  margin: 0 0 0.5em 0;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 2px;
}

input[type="text"],
input[type="password"] {
  background-color: var(--input-bg-color);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
  padding: 6px;
  color: var(--input-fg-color);
}

input:active,
input:focus,
button:focus,
input[type="submit"]:focus {
  outline: none;
  border: 1px solid var(--accent-color);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.15),
    0 3px 6px rgba(113, 83, 68, 0.16), 0 3px 6px rgba(113, 83, 68, 0.23);
}

.info,
.toggle {
  align-self: center;
  width: min-content;
  padding: 0.125em 0.25em;
  background: transparent;
  border: 1px solid transparent;
  color: currentColor;
  font-size: large;
}

.info:focus,
.toggle:focus {
  border: 1px solid var(--accent-color);
  box-shadow: none;
  color: var(--accent-color);
}

input:disabled {
  color: #ccc;
  box-shadow: none;
}

button,
input[type="submit"] {
  background: var(--button-bg);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  color: currentColor;
  outline: none;
}

button:disabled,
input[type="submit"]:disabled {
  color: #999;
}

button:not(:disabled):active,
input[type="submit"]:not(:disabled):active {
  background-color: rgba(0, 0, 0, 0.05);
  background-image: none;
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05),
    0 1px 0 0 rgba(255, 255, 255, 0.3);
}

button:focus {
  border-color: #666;
}
