:root {
  --bg-dark: rgba(0, 0, 0, 0.45);
  --card-bg: rgba(255, 255, 255, 0.9);
  --text: #0f172a; /* slate-900 */
  --muted: #475569; /* slate-600 */
  --accent: #1a73e8; /* Google blue */
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--text);
  line-height: 1.5;
  background-color: #000;
}

/* --- Background image layer --- */
.bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--bg-dark), var(--bg-dark)), url("/background.jfif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  z-index: -2;
}

/* Optional subtle vignette for readability */
.vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.45);
}

/* --- Layout container (centers content vertically) --- */
.wrap {
  min-height: 100dvh; /* mobile-friendly viewport */
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
}

/* --- Card --- */
.card {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  background: var(--card-bg);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card__media {
  display: none; /* hidden on small screens */
  background: url("https://images.unsplash.com/photo-1516979187457-637abb4f9353?q=80&w=2060&auto=format&fit=crop")
    center/cover no-repeat;
  min-height: 220px;
}

.card__body {
  padding: clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  letter-spacing: 0.2px;
}

p {
  margin: 0;
  color: var(--muted);
}

/* --- Google Sign-In button --- */
.g-btn {
  --height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  height: var(--height);
  border: 1px solid #dadce0;
  border-radius: 999px;
  background: #fff;
  color: #202124;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.04s ease,
    box-shadow 0.2s ease,
    background 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.g-btn:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.g-btn:active {
  transform: translateY(1px);
}
.g-btn:focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.35);
  outline-offset: 3px;
}

.g-icon {
  width: 22px;
  height: 22px;
  display: block;
}

/* --- Fine layout on wider screens --- */
@media (min-width: 880px) {
  .card {
    grid-template-columns: 1.1fr 1fr;
  }
  .card__media {
    display: block;
  }
}

/* --- Utility: spacer to keep button vertically centered in card --- */
.spacer {
  flex: 1;
}
.actions {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Footer note --- */
.legal {
  font-size: 0.9rem;
  color: #475569;
}
.legal a {
  color: var(--accent);
  text-underline-offset: 2px;
}

pre {
  white-space: pre-wrap; /* preserves formatting + wraps */
  overflow-wrap: break-word;
}
