@font-face {
  font-family: "CustomFont";
  src: url("fonts/EuclidCircularA-Medium-WebS.eot");
  src: url("fonts/EuclidCircularA-Medium-WebS.eot?#iefix")
      format("embedded-opentype"),
    url("fonts/EuclidCircularA-Medium-WebS.woff") format("woff"),
    url("fonts/EuclidCircularA-Medium-WebS.woff2") format("woff2"),
    url("fonts/EuclidCircularA-Medium-WebS.ttf") format("truetype"),
    url("fonts/EuclidCircularA-Medium-WebS.svg") format("svg");
}

body,
html {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0px;
}

* {
  box-sizing: inherit;
}

body {
  background: #e8e9ed;
  font-family: "CustomFont", Open Sans, Arial, sans-serif;
  color: #ffffff;
}

#page {
  margin: 100px;
}

.flex-page {
  display: flex;
  height: 100%;
  z-index: 1;
}

#left {
  padding: 90px;
  position: relative;
  width: 100%;
  background-color: #1e1e28;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.error-message {
  display: none;
  color: #620000;
}

#title {
  font-size: 42px;
  font-weight: 700;
  line-height: 48px;
  color: #ffffeb;
  margin-bottom: 20px;
}

#subtitle {
  font-size: 25px;
  letter-spacing: 3px;
  line-height: 33px;
  margin-top: 10px;
}

.xsite-logo {
  width: 150px;
  margin-bottom: 20px;
}

#form {
  margin-top: 10px;
  background: #37a078;
  padding: 45px;
  position: relative;
  max-width: 600px;
  z-index: 2;
}

.form-row:after {
  clear: both;
  content: " ";
  display: table;
}

.form-row input {
  display: block;
  float: left;
  height: 42px;
  margin-bottom: 0;
  border: none;
  box-sizing: border-box;
  padding-left: 18px;
  font-size: 18px;
  font-weight: 300;
  padding-right: 18px;
  background: #ffffeb;
  width: 100%;
}

.form-row input::placeholder {
  color: #16171e;
}

#submit-btn {
  border: none;
  border-radius: 2px;
  color: #16171e;
  background: #ebdc55;
  width: 165px;
  height: 42px;
  font-weight: 400;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0px 3px 6px #00000029;
}

#submit-btn img {
  margin-left: 10px;
}

#cb {
  display: none;
}

#cb-cnt {
  display: grid;
  grid-template-columns: 50px 1fr;
  vertical-align: bottom;
  width: 100%;
}

#cb-replaced {
  position: relative;
  display: block;
  margin-right: 10px;
  width: 35px;
  height: 35px;
  background-color: #ffffeb;
  float: left;
  cursor: pointer;
  border-radius: 2px;
}

#cb-replaced .inner {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: #ffffeb;
  background-image: none;
  background-size: contain;
  background-repeat: no-repeat;
}

#cb-replaced.checked .inner {
  background-image: url("images/captiveportal-cb-check.png");

  background-color: #1a2a4f;
}

#cb-replaced.checked {
  background-color: #1a2a4f;
}

#cb-text {
  float: left;
  color: #ffffeb;
  font-size: 16px;
}

#cb-text span {
  white-space: nowrap;
}

.checkbox-replaced {
  position: relative;
  display: block;
  width: 25px;
  height: 25px;
  background-color: #ffffff;
  float: left;
  cursor: pointer;
}

.checkbox-replaced .inside {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: #ffffff;
  background-image: none;
  background-size: contain;
  background-repeat: no-repeat;
}

.checkbox-replaced.checked .inside {
  background-image: url("images/captiveportal-cb-tick.png");
}

.input-group {
  position: relative;
  display: block;
  margin-right: 12px;
  margin-bottom: 18px;
  float: left;
  width: 100%;
}

.input-group.full-width {
  width: 100%;
  float: none;
  clear: both;
}

.clear-both {
  clear: both;
  display: block;
  position: relative;
}

/* The Modal (background) */
.modal {
  display: block; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 2; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: hidden; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #ebdc55;
  color: #16171e;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: none;
  border-radius: 4px;
  width: 80%; /* Could be more or less, depending on screen size */
  max-width: 500px;
}

.modal-content p {
  margin-top: 0px;
  margin-bottom: 15px;
}

.modal-content button {
  background-color: #fff;
  border-radius: 4px;
  cursor: pointer;
  padding: 10px;
  border: none;
  width: 130px;
}

.modal-content button:first-child {
  margin-right: 8px;
}

.modal-content button:hover {
  background-color: #ffc8c8;
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.potteries-logo {
  display: none;
  z-index: 3;
}

.potteries-bg-desktop {
  background: url(images/potteries-bg-desktop.png);
  background-position: 0cm -4cm;
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: 0;
  right: 0;
}

.download-notice {
  width: 210px;
  position: absolute;
  top: -31px;
  right: -154px;
}

.app-links {
  position: absolute;
  width: 100%;
  left: 0;
  text-align: center;
  bottom: -84px;
  padding: 15px 0;
}

.app-links div {
  text-decoration: none;
  margin: 0 10px;
  display: inline-block;
}

.app-links div.apple-app img {
  width: 50px;
}

.app-links div.google-app img {
  width: 44px;
  margin-top: -2px;
}

@media only screen and (min-width: 1900px) {
  .potteries-bg-desktop {
    background: #1e1e28;
  }

  .potteries-bg-desktop img {
    display: block;
    min-height: 100vh;
    min-width: 110%;
    width: 100%;
    position: absolute;
    bottom: 0;
  }
}

@media only screen and (max-width: 1900px) {
  .potteries-bg-desktop img {
    display: none;
  }
}

@media only screen and (max-width: 1460px) {
  .potteries-bg-desktop {
    background-position: 0cm -3cm;
  }
}

@media only screen and (max-width: 1260px) {
  .potteries-bg-desktop {
    background-position: 0cm -2cm;
  }
}

@media only screen and (max-width: 1024px) {
  html,
  body {
    width: initial;
    height: 100%;
    margin: 0px;
    overflow-y: auto;
  }

  #left {
    display: block;
    position: relative;
    width: 100%;
    z-index: 2;
    height: 100%;
    padding: 40px;
    background-image: url(images/potteries-bg.jpg);
    background-color: #cccccc;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .xsite-logo {
    width: 115px;
    margin: auto;
    margin-top: 10px;
  }

  .logo-container {
    text-align: center;
  }

  #wifi-form {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .potteries-bg-desktop {
    background: initial;
  }

  #title {
    color: #fff;
    font-size: 52px;
    line-height: 56px;
    text-align: left;
    align-self: baseline;
    padding-left: 40px;
    width: calc(100% - 220px);
    margin-bottom: 20px;
  }

  .download-notice {
    right: -30px;
  }

  .app-links {
    position: relative;
    bottom: initial;
  }

  #wifi-form {
    width: 100%;
  }

  #form {
    width: 100%;
    display: flex;
    flex-direction: column;
    place-items: center;
    margin-top: 0px;
    height: 100%;
    padding: 20px;
    max-width: initial;
  }

  .form-row input {
    font-size: 18px;
    width: 100%;
    margin-right: 0px;
    height: 45px;
    margin-bottom: 7px;
  }

  .input-group {
    margin-right: 0;
    float: none;
    width: 90%;
    margin: 6px;
  }

  #cb-cnt {
    display: grid;
    grid-template-columns: 30px 1fr;
  }

  #cb-text {
    font-size: 16px;
    line-height: 22px;
    margin-left: 10px;
  }

  #submit-btn {
    margin-top: 20px;
    width: 150px;
    font-size: 16px;
    height: 40px;
    width: 100%;
    max-width: 250px;
  }

  .form-row {
    display: grid;
    place-items: center;
    width: 100%;
  }

  .potteries-logo {
    display: block;
    position: absolute;
    bottom: 0;
    width: 140px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }

  #cb-replaced {
    width: 30px;
    height: 30px;
  }

  .mobile-hide {
    display: none;
  }
}

@media only screen and (max-width: 1024px) {
  #submit-btn {
    max-width: initial;
  }
}

@media only screen and (max-width: 768px) {
  #title {
    width: calc(100% - 168px);
    font-size: 47px;
    padding-left: 30px;
    margin-top: 10px;
  }
}

@media only screen and (max-width: 620px) {
  .input-group {
    width: 100%;
  }

  #left {
    padding: 20px;
  }

  #title {
    width: 100%;
    padding-left: 0px;
    margin-top: 0px;
  }

  .download-notice {
    position: relative;
    bottom: initial;
    left: initial;
    right: initial;
    top: initial;
    margin-top: 15px;
    margin-left: -15px;
    width: 175px;
  }

  .app-links {
    position: absolute;
    bottom: 0px;
    right: 10px;
    width: fit-content;
    left: initial;
    padding-bottom: 10px;
  }

  .app-links div {
    margin: 0 5px;
  }
}

@media only screen and (max-width: 530px) {
  .potteries-logo {
    width: 120px;
  }

  .form-row input {
    height: 40px;
  }

  .input-group {
    margin: 4px;
  }

  #cb-replaced {
    width: 26px;
    height: 26px;
  }

  #cb-text {
    font-size: 15px;
    line-height: 26px;
  }

  .modal-content button {
    width: 110px;
  }
}

@media only screen and (max-width: 421px) {
  #cb-text {
    line-height: 18px;
  }
}

@media only screen and (max-width: 375px) {
  #title {
    font-size: 36px;
    line-height: 42px;
  }

  .potteries-logo {
    width: 87px;
  }
}

@media only screen and (max-width: 330px) {
  .potteries-logo {
    width: 87px;
  }
}

@media screen and (orientation: landscape) and (min-device-width: 319px) and (max-device-width: 850px) {
  #form,
  .flex-page,
  #left {
    height: initial;
  }

  #form {
    padding-bottom: 160px;
  }
}
