:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #20312b;
  background: #15221e;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: 36px 18px;
  display: grid;
  place-items: center;
  background-color: #15221e;
  background-image: linear-gradient(125deg, #15221e 0%, #203b32 52%, #332f25 100%);
}

main {
  width: min(100%, 680px);
  padding: clamp(26px, 6vw, 48px);
  border: 1px solid #d5ddd3;
  border-top: 5px solid #b77a4a;
  border-radius: 8px;
  background: #f8f7f1;
  box-shadow: 0 24px 70px rgb(0 0 0 / 28%);
}

h1 {
  max-width: 20ch;
  margin: 0;
  color: #183b30;
  font-size: 2.6rem;
  line-height: 1.08;
}

.description {
  margin: 18px 0 30px;
  color: #53645c;
  font-size: 1rem;
  line-height: 1.6;
}

.providers {
  display: grid;
  gap: 12px;
}

.provider,
button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 0.98rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.provider-google {
  border-color: #ccd4cc;
  color: #27372f;
  background: #fffefa;
}

.provider-google:hover {
  border-color: #849b8d;
  background: #edf2ec;
}

.provider-github {
  color: #fff;
  background: #253b32;
}

.provider-github:hover {
  background: #385848;
}

.session {
  margin: 28px 0 14px;
  padding: 18px 20px;
  border-left: 3px solid #b77a4a;
  background: #eeeee6;
}

.session h2,
.about h2 {
  margin: 0 0 8px;
  color: #42584d;
  font-size: 1.05rem;
  font-weight: 700;
}

#status {
  min-height: 1.5em;
  margin: 0;
  color: #293c35;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.logout-form {
  display: flex;
  justify-content: flex-end;
}

button {
  min-width: 96px;
  color: #743e32;
  background: #f3e9e4;
  border-color: #e2cec4;
  cursor: pointer;
}

button:hover {
  background: #ead8cf;
}

.provider:focus-visible,
button:focus-visible {
  outline: 3px solid #a75d40;
  outline-offset: 3px;
}

.about {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid #dce0d8;
}

.about h2 {
  margin-bottom: 16px;
}

.about-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0;
}

.about-list div {
  padding-top: 10px;
  border-top: 1px solid #dce0d8;
}

.about-list dt {
  margin-bottom: 4px;
  color: #315847;
  font-weight: 700;
}

.about-list dd {
  margin: 0;
  color: #59655e;
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 420px) {
  body {
    padding: 18px 12px;
  }

  main {
    padding: 28px 22px;
  }

  h1 {
    font-size: 2rem;
  }

  .about-list {
    grid-template-columns: 1fr;
  }
}
