:root {
  color-scheme: light;
  font-family: Assistant, Arial, sans-serif;
  color: #121212;
  background: #f3f3f3;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #f3f3f3;
}

.account-header {
  width: min(100% - 40px, 1200px);
  min-height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(18, 18, 18, 0.16);
}

.account-logo {
  display: inline-flex;
  align-items: center;
}

.account-logo img {
  display: block;
  width: min(160px, 42vw);
  height: auto;
}

.account-home-link,
.account-link-button {
  color: #121212;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.account-main {
  width: min(100% - 32px, 480px);
  margin: 64px auto 96px;
}

.account-card {
  padding: clamp(24px, 6vw, 48px);
  background: #fff;
  border: 1px solid rgba(18, 18, 18, 0.18);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(18, 18, 18, 0.06);
}

.account-eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.account-card h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 2.8rem);
  line-height: 1.1;
}

.account-intro {
  margin: 12px 0 28px;
  color: #4a4a4a;
  line-height: 1.5;
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.account-tab {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #121212;
  border-radius: 2px;
  background: transparent;
  color: #121212;
  font: inherit;
  cursor: pointer;
}

.account-tab.is-active {
  background: #121212;
  color: #fff;
}

.account-button {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #121212;
  border-radius: 2px;
  background: #121212;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.account-button:hover:not(:disabled) {
  background: #333;
}

.account-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.account-button--google {
  background: #fff;
  color: #121212;
}

.account-button--google:hover:not(:disabled) {
  background: #f3f3f3;
}

.account-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #696969;
  font-size: 0.875rem;
}

.account-divider::before,
.account-divider::after {
  height: 1px;
  flex: 1;
  background: #dedede;
  content: "";
}

.account-form {
  display: grid;
  gap: 10px;
}

.account-form[hidden],
.account-tabs[hidden],
.account-divider[hidden],
#signed-in-panel[hidden],
#account-message[hidden],
#google-button[hidden],
#google-note[hidden],
#email-note[hidden] {
  display: none;
}

.account-form label {
  margin-top: 6px;
  font-weight: 600;
}

.account-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #777;
  border-radius: 2px;
  background: #fff;
  color: #121212;
  font: inherit;
}

.account-form input:focus-visible,
.account-button:focus-visible,
.account-tab:focus-visible,
.account-link-button:focus-visible,
.account-home-link:focus-visible {
  outline: 2px solid #121212;
  outline-offset: 3px;
}

.account-link-button {
  justify-self: start;
  padding: 4px 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.account-note,
.account-footer-note,
.account-muted,
.account-setup-note {
  color: #595959;
  font-size: 0.9rem;
  line-height: 1.5;
}

.account-setup-note {
  margin: 18px 0 0;
  padding: 12px;
  border-left: 3px solid #121212;
  background: #f3f3f3;
}

.account-message {
  margin: 16px 0;
  padding: 12px;
  border: 1px solid #777;
  background: #f3f3f3;
  line-height: 1.45;
}

.account-message[data-kind="error"] {
  border-color: #9c2525;
  color: #7a1717;
}

.account-signed-in h2,
.account-form h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.account-footer-note {
  margin: 24px 0 0;
  text-align: center;
}

@media (max-width: 480px) {
  .account-header {
    width: calc(100% - 28px);
    min-height: 78px;
  }

  .account-main {
    margin-top: 32px;
  }
}
