:root {
  color-scheme: dark;
  --signal: #ffd318;
  --bg: #050505;
  --panel: #121212;
  --panel-strong: #181818;
  --text: #f6f6f2;
  --muted: #989892;
  --line: #2a2a28;
  --bad: #ff8277;
  --good: #76d69c;
}

* { box-sizing: border-box; }

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

.home {
  width: min(940px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: clamp(52px, 10vw, 120px);
  align-items: center;
  padding: 64px 0 90px;
}

.identity { max-width: 460px; }

.app-icon {
  display: block;
  width: 104px;
  height: 104px;
  margin: 0 0 22px;
  object-fit: cover;
}

.wordmark,
.overline {
  margin: 0 0 10px;
  color: var(--signal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--signal);
  font-size: clamp(42px, 7vw, 70px);
  line-height: .98;
  letter-spacing: -.045em;
}

.intro {
  max-width: 380px;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 17px;
}

.guest-link {
  color: var(--text);
  font-weight: 700;
  text-underline-offset: 4px;
}

.auth-card {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .36);
}

.auth-card h2 {
  margin: 0 0 24px;
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.button {
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 15px;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.button.primary {
  background: var(--signal);
  color: #080808;
}

.button.google {
  border-color: #deded8;
  background: #f7f7f3;
  color: #171717;
}

.button:disabled {
  cursor: wait;
  opacity: .55;
}

.google-mark {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #ddd;
  color: #4285f4;
  font-size: 13px;
  font-weight: 850;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 21px 0;
  color: #767672;
  font-size: 12px;
  font-weight: 650;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
  padding: 3px;
  border-radius: 10px;
  background: #080808;
}

.segmented button {
  border: 0;
  border-radius: 8px;
  padding: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.segmented button.active {
  background: var(--panel-strong);
  color: var(--text);
}

.auth-form { display: grid; gap: 13px; }

label {
  display: grid;
  gap: 6px;
  color: #b9b9b3;
  font-size: 12px;
  font-weight: 700;
}

input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 13px;
  outline: none;
  background: #090909;
  color: var(--text);
}

input:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(255, 211, 24, .12);
}

.message {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.message.good { color: var(--good); }
.message.bad { color: var(--bad); }

.notice {
  margin-bottom: 20px;
  border: 1px solid #5c501c;
  border-radius: 10px;
  padding: 11px 13px;
  background: #211d0d;
  color: #e9d980;
  font-size: 13px;
}

.account-email {
  margin: -14px 0 22px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.text-button {
  width: 100%;
  margin-top: 14px;
  border: 0;
  padding: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 650;
}

.home-footer {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .035em;
  text-align: center;
  opacity: .48;
}

.home-footer a { text-underline-offset: 3px; }

[hidden] { display: none !important; }

@media (max-width: 760px) {
  .home {
    width: min(calc(100% - 28px), 430px);
    grid-template-columns: 1fr;
    gap: 38px;
    align-content: center;
    padding: 38px 0 78px;
  }

  .identity { text-align: center; }
  .app-icon { width: 86px; height: 86px; margin: 0 auto 18px; }
  .intro { margin: 16px auto 20px; }
  .auth-card { padding: 24px; }
}
