:root {
  color-scheme: dark;
  background: #111;
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #111;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
}

header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px clamp(12px, 4vw, 24px);
  background: #111;
}

.brand-link {
  grid-column: 2;
  justify-self: center;
  text-decoration: none;
}

.brand-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}

.panel-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px 24px;
}

h1 {
  display: flex;
  align-items: center;
  gap: 0.04em;
  height: 2.75rem;
  margin: 0;
  color: #fff;
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.brand-blue {
  color: #4285f4;
}

.brand-yellow {
  color: #fbbc05;
}

.brand-red {
  color: #ea4335;
}

.brand-green {
  color: #34a853;
}

nav {
  grid-column: 3;
  justify-self: end;
  display: flex;
  flex: none;
  gap: 14px;
}

nav a,
button {
  display: inline-block;
  box-sizing: border-box;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid #777;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

nav a:hover,
button:hover {
  border-color: #fff;
}

nav a:focus-visible,
button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.signup-button {
  border-color: #4285f4;
  background: #4285f4;
  color: #fff;
}

.signup-button:hover {
  border-color: #5b95f5;
  background: #5b95f5;
}

@media (max-width: 760px) {
  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  nav {
    align-self: flex-end;
  }

}

@media (max-width: 360px) {
  header {
    gap: 12px;
    padding: 18px 10px;
  }

  h1 {
    height: 1.75rem;
    font-size: 1.35rem;
    gap: 0.03em;
  }

  nav {
    gap: 12px;
  }

  nav a,
  button {
    padding: 9px 12px;
    font-size: 0.85rem;
  }
}

.info-card {
  width: 100%;
  max-width: 40rem;
  box-sizing: border-box;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid #333;
  border-radius: 20px;
  background: #191919;
  text-align: center;
}

.card-blue {
  border-color: #4285f4;
}

.card-blue h2 {
  color: #8ab4f8;
}

.card-green {
  border-color: #34a853;
}

.card-green h2 {
  color: #81c995;
}

.card-yellow {
  border-color: #fbbc05;
}

.card-yellow h2 {
  color: #fdd663;
}

.card-red {
  border-color: #ea4335;
}

.card-red h2 {
  color: #f28b82;
}

.card-purple {
  border-color: #a142f4;
}

.card-purple h2 {
  color: #c58af9;
}

h2 {
  margin: 0 0 1rem;
  font-weight: 500;
}

p {
  line-height: 1.6;
}

.auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-page header {
  flex: none;
}

.auth-page .auth-main {
  display: grid;
  flex: 1;
  width: 100%;
  min-height: 0;
  padding: 24px;
  place-items: center;
}

.auth-form {
  display: grid;
  width: min(100%, 26rem);
  gap: 20px;
}

.auth-form h1 {
  display: block;
  height: auto;
  font-size: 2rem;
  text-align: center;
  white-space: normal;
}

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-form .terms-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.auth-form .terms-consent input {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 2px 0 0;
  padding: 0;
  accent-color: #4285f4;
}

.terms-consent a {
  color: #8ab4f8;
}

.auth-form input {
  box-sizing: border-box;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #444;
  border-radius: 10px;
  background: #191919;
  color: #fff;
  font: inherit;
  font-size: 1rem;
}

.auth-form input:focus-visible {
  outline: 2px solid #4285f4;
  outline-offset: 2px;
}

.auth-form button {
  width: 100%;
  padding: 13px;
  border-color: #4285f4;
  background: #4285f4;
  font-size: 1rem;
}

.auth-switch {
  margin: 0;
  text-align: center;
}

.auth-switch a {
  color: #8ab4f8;
}

.site-footer {
  padding: 0 24px 32px;
  text-align: center;
}

.site-footer a {
  color: #8ab4f8;
}

.terms-main {
  min-height: 0;
  padding: 48px 24px;
}

.terms-content {
  width: min(100%, 56rem);
  margin: 0 auto;
}

.terms-content h1 {
  height: auto;
  margin-bottom: 24px;
  white-space: normal;
}

.terms-content h2 {
  margin-top: 32px;
}

.terms-content p,
.terms-content li {
  line-height: 1.7;
}

.terms-content ul {
  padding-left: 1.5rem;
}

@media (max-width: 600px) {
  .panel-content {
    gap: 16px;
    padding: 32px 16px;
  }

  .info-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .auth-page header {
    padding: 18px 16px;
  }

  .auth-page .auth-main {
    padding: 20px 16px 28px;
  }

  .auth-form {
    gap: 18px;
  }

  .terms-main {
    padding: 32px 16px;
  }

  .terms-content h2 {
    margin-top: 24px;
  }

  .terms-content p,
  .terms-content li {
    line-height: 1.6;
  }

  .site-footer {
    padding: 0 16px 24px;
  }
}

