@font-face {
  font-family: 'PT Sans';
  src: url('/static/fonts/PTS55F-webfont.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PT Sans';
  src: url('/static/fonts/PTS75F-webfont.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir Next Bold';
  src: url('/static/fonts/avenir-next-bold.woff2') format('woff2'),
       url('/static/fonts/avenir-next-bold.woff') format('woff');
  font-display: swap;
}

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

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

body {
  font-family: 'PT Sans', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #4a4a4a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Splash background: green on mobile, grey behind the card on desktop. */
.splash-page {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #82c328;
  background-image: linear-gradient(-180deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.splash-inner {
  width: 100%;
  max-width: 520px;
  padding: 0;
}

.logo {
  display: block;
  width: 250px;
  height: 40px;
  margin: 30px auto;
  background-image: url('/static/img/rm_logo_white.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  font-size: 0;
}

.form-wrap {
  padding: 30px;
}

.form-wrap h5 {
  color: #fff;
  font-family: 'PT Sans', Helvetica, Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  margin: 0 0 0.75em;
}

.domain-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.domain-row .field {
  flex: 1 1 auto;
  min-width: 0;
}

.domain-row .suffix {
  flex: 0 0 auto;
  color: #4a4a4a;
  font-family: 'PT Sans', Helvetica, Arial, sans-serif;
  font-size: 1.5625rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}

input[type='text'] {
  width: 100%;
  height: 2.4375rem;
  padding: 10px;
  border: 1px solid #fff;
  border-radius: 3px;
  background-color: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 20px;
  text-align: right;
  box-shadow: none;
  transition: border-color 0.25s ease-in-out;
}

input[type='text']::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

input[type='text']:focus {
  outline: none;
  border-color: #fff;
  background-color: transparent;
}

.button {
  display: block;
  width: 100%;
  margin-top: 40px;
  padding: 1em 3em;
  border: 3px solid #fff;
  border-radius: 0;
  background-color: transparent;
  color: #fff;
  font-family: 'Avenir Next Bold', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.25s ease-out, color 0.25s ease-out;
}

.button:hover,
.button:focus {
  background-color: #fff;
  color: #a0d94c;
}

/* Flash message, mirrors Foundation's floating callout. */
.callout {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 9999;
  padding: 1rem;
  border: none;
  border-bottom: 3px solid #a0d94c;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0 0 0 1px #e6e6e6;
  color: #4a4a4a;
}

.callout p {
  margin: 0;
}

@media screen and (min-width: 640px) {
  .splash-page {
    background-color: #eee;
    background-image: none;
  }

  .splash-inner {
    padding: 0 10px;
  }

  .form-wrap {
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 0 5px 0 #ababab;
    background: #82c328;
    background-image: linear-gradient(-180deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
  }

  .button {
    padding: 1.25em 5em;
    margin-top: 60px;
  }

  .callout {
    top: 80px;
    left: 200px;
    right: 200px;
  }
}
