:root {
  color-scheme: light;

  --bg: #232c3d;
  --card-bg: #ffffff;

  --text: #0f172a;
  --muted: #64748b;

  --primary: #d70651;
  --primary-hover: #d70651;
  --ring: rgba(255, 11, 174, 0.22);

  --radius: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;

  background-color: var(--bg);
  background-image: url("/assets/images/background-pattern.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: auto;

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Shell just centers the card */
.auth-shell {
  width: 100%;
  display: grid;
  place-items: center;
}

/* This is now the real white box */
.auth-card {
  width: min(420px, 92vw);
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);

  padding: 28px 32px 32px;
  /* 👈 INTERNAL MARGINS */
  display: grid;
  gap: 18px;
  text-align: center;
}

/* Title + subtitle like Cognito */
.auth-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.auth-subtitle {
  margin: -8px 0 8px;
  font-size: 14px;
  color: var(--muted);
}

/* Kill old metal layers */
.inner-fade,
.gloss,
.vignette {
  display: none !important;
}

/* Primary button */
.metal-btn {
  width: 100%;
  height: 36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  border-radius: 8px;

  background: var(--primary);
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
  cursor: pointer;
}

.metal-btn:hover {
  background: var(--primary-hover);
}

.metal-btn:active {
  transform: translateY(1px);
}

.metal-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
}

/* Button label */
.label {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.label span {
  -webkit-text-stroke: 0;
}

/* Footer message inside the card */
.normal-text {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

/* Navbar styles */
.navbar {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-bottom: 20px;
}

.navbar a {
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.navbar a:hover {
  color: var(--primary);
}

.navbar a.selected {
  color: var(--primary);
  font-weight: 600;
}

/* ---------- App pages (page1/page2/page3) ---------- */

/* Wider card, same styling */
.app-card {
  width: min(900px, 92vw);
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);

  padding: 28px 32px 32px;
  display: grid;
  gap: 18px;
  text-align: center;
}

/* Embed area */
.embed-wrap {
  display: grid;
  place-items: center;
}

.embed-box {
  width: 500px;
  height: 500px;
  border-radius: var(--radius);
  background: #f3f4f6;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .10);
}

.embed-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Responsive: if screen is narrower than 500px */
@media (max-width: 560px) {
  .embed-box {
    width: 100%;
    height: min(500px, 70vh);
  }
}

/* Small button override (wins against .metal-btn { width:100% }) */
a.metal-btn.small {
  width: fit-content !important;
  height: 32px;
  padding: 0 16px;
  justify-self: center;
  /* centers inside the grid card */
}



a.metal-btn.small .label,
a.metal-btn.small .label span {
  color: var(--card-bg);
}

/* ---------- Creator controls ---------- */

.creator-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 8px 0 12px;
}

.creator-label {
  font-size: 14px;
  color: var(--muted);
  text-align: right;
}

.creator-input {
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  font-family: inherit;
}

.creator-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--ring);
}