/* Shared styles of the community (Discourse) login and goodbye screens. */
:root {
  --ink: #09090b;
  --muted: #71717a;
  --border: #e4e4e7;
  --primary: #2f2f3c;
  --primary-fg: #fafafa;
  --accent: #b8863b;
  --font: "Sofia Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: #1c1a1f;
}

.stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 88px 16px 32px;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(20, 18, 24, 0.72) 0%, rgba(20, 18, 24, 0.45) 45%, rgba(20, 18, 24, 0.7) 100%),
    url("assets/background.jpg") center / cover no-repeat;
}

.logo {
  display: block;
  height: 112px;
  width: auto;
  max-width: 88vw;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.45));
}

.card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 32px 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
}

.sub {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 400;
}

/* Language selector (top right of the page) */
.langbar {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.langbar svg { width: 16px; height: 16px; margin: 0 4px 0 8px; color: #fff; flex: none; }

.langbar button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.langbar button:hover { background: rgba(255, 255, 255, 0.18); }
.langbar button[aria-pressed="true"] { background: #fff; color: var(--primary); }
.langbar button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Form */
form { display: flex; flex-direction: column; gap: 16px; }

label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }

input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
}

input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--primary-fg);
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { background: #1f1f29; }
.btn--block { width: 100%; margin-top: 4px; }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--border); }
.btn--ghost:hover { background: #f4f4f5; }

.link { font-size: 13px; color: var(--primary); text-align: center; text-decoration: underline; text-underline-offset: 3px; }

.help { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); text-align: center; font-weight: 400; }
.help a { color: inherit; }

/* Goodbye */
.card--center { text-align: center; padding-top: 36px; }
.check {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: #f6efe2; color: var(--accent);
}
.check svg { width: 28px; height: 28px; }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.note { margin: 18px 0 0; font-size: 12.5px; color: var(--muted); font-weight: 400; }

.footer { color: rgba(255, 255, 255, 0.7); font-size: 12px; font-weight: 400; }

@media (max-width: 640px) {
  .stage { padding-top: 112px; gap: 20px; }
  .logo { height: 88px; }
  .card { padding: 26px 20px 22px; }
  .langbar { left: 12px; right: 12px; top: 12px; justify-content: center; flex-wrap: wrap; border-radius: 16px; }
  .langbar svg { display: none; }
  .langbar button { padding: 6px 10px; }
}

@media (prefers-reduced-motion: no-preference) {
  .card { animation: rise 0.35s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
