* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: #555a7f;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 28px 20px;
  color: #fff;
  font: 13.5px/1.4 Arial, sans-serif;
}

form,
#success {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.pill {
  display: flex;
  align-items: center;
  height: 38px;
  margin-bottom: 7px;
  padding: 0 16px;
  border-radius: 40px;
  background: #7482aa;
  transition: background 0.3s;
}

.pill input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  color: #565b7d;
  font: inherit;
}

.pill input::placeholder {
  color: #c6cfe4;
  opacity: 1;
}

/* A cross-origin frame has no height of its own, so its container needs one. */
.pill > div {
  position: relative;
  top: -2px;
  width: 100%;
  height: 22px;
}

.pill.is-focused,
.pill.is-filled {
  background: #fff;
}

.pill.is-invalid {
  background: #f8735e;
}

.pill.is-invalid input {
  color: #fff;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 7px;
}

.gap {
  height: 12px;
}

button {
  width: 100%;
  height: 40px;
  margin-top: 12px;
  border: 0;
  border-radius: 50px;
  background: #fcdd60;
  color: #3b3b4f;
  font: 600 14px 'Segoe UI', system-ui, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
}

button:hover:enabled {
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.4);
}

button:disabled {
  opacity: 0.65;
  cursor: default;
}

/* Below the button, so a message doesn't move the centred form. */
#error {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  margin: 10px 0 0;
  text-align: center;
}

#success {
  padding: 18px;
  border-radius: 18px;
  background: #7482a7;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#success h1 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
}

#success dl {
  margin: 0;
}

#success dl div {
  display: flex;
  align-items: center;
  height: 34px;
}

#success dt {
  flex: 0 0 56px;
  font-weight: 600;
}

#success dd {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
