/*
 * Colour, type and spacing values are transcribed from the mobile app's Neutral theme ("Root Blue
 * Green"), and the custom properties are named after that theme's own design roles.
 */
:root {
  --background-primary: #f6f6f9;
  --typography-heading-dark: #000000;
  --button-primary: #6884b6;
  --button-primary-pressed: #426194;
  --button-primary-pressed-border: #dee3f2;
  --typography-text-light: #ffffff;

  --button-radius: 12px;
  --spacing-page: 24px;

  --font-family: 'Zalando Sans', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/*
 * The app anchors this content to the top of the safe area rather than centring it, with the same
 * padding on all four sides as the gap between elements.
 */
body {
  margin: 0;
  padding: var(--spacing-page);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--background-primary);
  color: var(--typography-heading-dark);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: var(--spacing-page);
  text-align: center;
}

.page__icon {
  width: 96px;
  height: 96px;
}

.page__logo {
  height: 60px;
}

/* `Heading/Content Heading/H3`. */
.page__heading {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 0.24px;
}

/* `Body/Body Medium`. Body copy inherits the theme's pure-black heading colour. */
.page__text {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

/* `Button/Label Standard` on the standard 48 touch target. */
.page__button {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--button-radius);
  background: var(--button-primary);
  color: var(--typography-text-light);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-decoration: none;
  cursor: pointer;
}

.page__button:hover,
.page__button:active {
  background: var(--button-primary-pressed);
  color: var(--typography-text-light);
}

/* Keyboard focus reuses the theme's pressed-state ring. */
.page__button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--button-primary-pressed-border);
}

.page__messages {
  width: 100%;
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}

.page__message {
  padding: 12px;
  border-radius: var(--button-radius);
  background: var(--button-primary-pressed-border);
  font-size: 14px;
  line-height: 20px;
  text-align: left;
}
