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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Source Sans Pro', sans-serif;
  color: #3f3d56;
  background: #f4f7f8;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(40, 184, 190, 0.14), transparent 60%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(0, 127, 185, 0.08), transparent 55%),
    #f4f7f8;
  z-index: -1;
}

#root {
  min-height: 100%;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 47px;
  background-color: #007fb9;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-title {
  color: #fff;
  font-size: 1.2em;
  margin: 0;
  font-weight: normal;
}

.has-navbar {
  padding-top: 47px;
}

/* Choose password form */
.form-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 47px);
  padding: 24px 16px;
}

.form-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid rgba(34, 36, 38, 0.15);
  border-radius: 4px;
  box-shadow: 0 1px 2px 0 rgba(34, 36, 38, 0.15);
  padding: 1em;
}

.form-field {
  margin-bottom: 1em;
  position: relative;
}

.form-input {
  width: 100%;
  padding: 0.78571429em 1em 0.78571429em 2.67142857em;
  border: 1px solid rgba(34, 36, 38, 0.15);
  border-radius: 0.28571429rem;
  font-size: 1em;
  font-family: inherit;
  outline: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M12 17a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm6-9h-1V6a5 5 0 0 0-10 0v2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2zM9 6a3 3 0 0 1 6 0v2H9V6z'/%3E%3C/svg%3E") no-repeat 0.85em center / 1.1em;
}

.form-input:focus {
  border-color: #85b7d9;
}

.form-input.error {
  background-color: #fff6f6;
  border-color: #e0b4b4;
  color: #9f3a38;
}

.error-label {
  display: block;
  margin: 0.4em 0 0;
  padding: 0.5em 0.8em;
  color: #9f3a38;
  background: #fff;
  border: 1px solid #e0b4b4;
  border-radius: 0.28571429rem;
  font-size: 0.875em;
}

.error-message {
  margin: 0 0 1em;
  padding: 1em;
  background: #fff6f6;
  color: #9f3a38;
  border: 1px solid #e0b4b4;
  border-radius: 0.28571429rem;
}

.submit-btn {
  width: 100%;
  padding: 0.78571429em 1.5em;
  border: none;
  border-radius: 0.28571429rem;
  background-color: #00b5ad;
  color: #fff;
  font-size: 1em;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.submit-btn:hover {
  background-color: #009c95;
}

/* Success / verify pages */
.success-page {
  padding-top: 100px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 400px;
  padding-left: 16px;
  padding-right: 16px;
}

.success-title {
  color: #007fb9;
  font-size: 40px;
  font-family: 'Source Sans Pro', sans-serif;
  margin: 0;
  font-weight: normal;
}

.success-title.verify {
  font-size: 24px;
  font-style: oblique;
}

.success-text {
  line-height: 1.5;
  padding: 24px;
  font-size: 18px;
  margin: 0;
}

.verify-image {
  width: 200px;
  height: auto;
  margin: 8px 0;
}

.not-found {
  padding-top: 100px;
  text-align: center;
  color: #3f3d56;
}

/* Home / get the app */
.home-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

.home-content {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.home-logo {
  display: block;
  width: min(280px, 72vw);
  height: auto;
  margin: 0 auto 36px;
}

.home-title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0c2e37;
  line-height: 1.25;
}

.home-subhead {
  margin: 0 0 36px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #5b6b73;
}

.home-stores {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.store-link {
  display: block;
  line-height: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-link:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.store-link img {
  height: 48px;
  width: auto;
  max-width: 100%;
}

@media (min-width: 480px) {
  .home-stores {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }

  .store-link img {
    height: 52px;
  }
}
