/* Sign-in page: dusk over the Han River, with the twelve colours of C below. */
.signin-page {
  --night: oklch(0.25 0.1 275);
  --night-deep: oklch(0.21 0.085 272);
  height: auto;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--night-deep);
  color: var(--ink);
}

.signin-hero {
  position: relative;
  display: grid;
  min-height: min(78dvh, 820px);
  padding: max(20px, env(safe-area-inset-top)) 24px 40px;
  isolation: isolate;
  overflow: hidden;
}

.signin-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* Lift the text off the sky and melt the river into the page colour. */
.signin-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, oklch(0.2 0.08 272 / 0.55) 0%, transparent 38%),
    linear-gradient(0deg, var(--night-deep) 0%, transparent 22%);
}

.signin-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  align-self: start;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  text-decoration: none;
}

.signin-brand .brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  font-size: 18px;
}

.signin-card {
  justify-self: center;
  align-self: start;
  width: min(440px, 100%);
  margin-top: clamp(8px, 4dvh, 48px);
  padding: 28px 28px 20px;
  border: 1px solid oklch(1 0 0 / 0.14);
  border-radius: 20px;
  background: oklch(0.2 0.07 272 / 0.62);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 24px 60px -24px oklch(0.1 0.05 272 / 0.8);
  text-align: center;
}

.signin-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 4.2vw, 34px);
  font-weight: 600;
  line-height: 1.15;
}

.signin-card p, .signin-chords h2 span { word-break: keep-all; }

.signin-lead {
  margin: 12px auto 22px;
  max-width: 34ch;
  color: oklch(0.88 0.02 80);
  font-size: 15px;
  line-height: 1.6;
}

/* Google's button frame is a light document; a dark host makes browsers paint it on an opaque white box. */
.signin-google {
  color-scheme: light;
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.signin-status {
  margin: 12px 0 0;
  color: var(--warning);
  font-size: 14px;
}

.signin-skip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  color: var(--brass-strong);
  font-weight: 600;
}

.signin-note {
  margin: 6px 0 0;
  color: oklch(0.82 0.02 80);
  font-size: 13px;
  line-height: 1.55;
}

.signin-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 6px;
}

.signin-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  color: oklch(0.86 0.02 80);
}

.signin-chords {
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px 24px max(48px, env(safe-area-inset-bottom));
}

.signin-chords h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.signin-chords h2 span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 600px) {
  .signin-hero { min-height: 92dvh; padding-inline: 16px; }
  /* Keep the piano in view on a narrow screen. */
  .signin-art { object-position: 14% bottom; }
  .signin-card { padding: 22px 18px 16px; }
  .signin-chords { padding-inline: 16px; }
}
