/* Join links site (lab.sortie.nz). Colours from the portal's tokens. */
:root {
  --c-primary: #0703fa;
  --c-primary-pressed: #0502c4;
  --c-page: #f6f7fb;
  --c-surface: #ffffff;
  --c-text: #1a1a2e;
  --c-muted: #5c5c70;
  --c-tint-pink: #ffe6f5;
  --c-border: #e0e0e0;
  --c-on-primary: #ffffff;
  --font-body: Inter, -apple-system, 'SF Pro Text', Roboto, sans-serif;
  --font-display: -apple-system, 'SF Pro Display', Inter, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--c-page);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  display: flex;
  justify-content: center;
}

main {
  width: 100%;
  max-width: 440px;
  padding: 40px 16px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(234, 51, 159, 0.25);
}

.brand {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--c-muted);
}

h1 {
  margin: 24px 0 8px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
}

.lead {
  margin: 0 0 24px;
  color: var(--c-muted);
}

.card {
  width: 100%;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 24px 20px;
}

.label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
}

.code {
  margin: 4px 0 20px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.12em;
  word-break: break-all;
  user-select: all;
  -webkit-user-select: all;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--c-primary);
  color: var(--c-on-primary);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}

.button:active {
  background: var(--c-primary-pressed);
}

.button:focus-visible {
  outline: 3px solid var(--c-tint-pink);
  outline-offset: 2px;
}

.note {
  width: 100%;
  margin: 20px 0 0;
  padding: 16px;
  border-radius: 16px;
  background: var(--c-tint-pink);
  font-size: 15px;
  text-align: left;
}

.note p {
  margin: 0;
}

.note p + p {
  margin-top: 8px;
}

.hint {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--c-muted);
}

[hidden] {
  display: none !important;
}

@media (min-width: 600px) {
  main {
    padding-top: 72px;
  }

  h1 {
    font-size: 30px;
  }

  .code {
    font-size: 52px;
  }
}
