@font-face {
  font-family: "Euclid_Regular";
  src: url("https://clearstream-static.s3.eu-west-1.amazonaws.com/investec/lates/lp/fonts/Euclid+Circular+A+Regular.ttf")
    format("truetype");
}

/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Euclid_Regular";
  background-image: linear-gradient(to right, #061745, #0238b0);
  min-height: 100vh;
}

a {
  color: rgb(4, 56, 176);
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.main-container {
  min-height: 100vh;
  background: url(https://clearstream-static.s3.eu-west-1.amazonaws.com/investec/lates/lp/media/form_container.png);
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 50.86%;
}

/* Header */
.logo-bar {
  width: 100%;
  min-height: 15.9vh;
  padding: 30px 93px 57px 95px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-bar > .logo {
  height: 18px;
  margin-bottom: 6px;
}

.logo-bar > a > img {
  height: 18px;
}

.btn-nav {
  padding: 14.5px 48px 18.5px 48px;
  border-radius: 4px;
  background-color: #ffffff;
  font-size: 20px;
  color: #000000;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.5s ease;
}

.btn-nav:hover {
  background-color: rgb(221, 230, 253);
  text-decoration: none;
}

/* Form container */
.form-container {
  width: 100%;
  min-height: 84.1vh;
  padding: 71px 0 0 94px;
}

.form-container h1 {
  font-family: "Euclid_Regular";
  font-size: 68px;
  margin-left: -6px;
  margin-bottom: 38px;
  color: #ffffff;
  font-weight: normal;
}

.form-container p {
  width: 730px;
  max-width: 100%;
  font-family: "Euclid_Regular";
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 29px;
  color: #ffffff;
}

.form-container p:nth-child(1) {
  font-size: 25px;
  margin-bottom: 7px;
}

.form-container p:nth-child(5) {
  margin-bottom: 1.3rem;
}

.btn-sign,
.submit.btn.btn-secondary.btn-login,#registration_submit {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 63px;
  width: 250px;
  padding-bottom: 5px;
  border-radius: 31px;
  background-color: #f2c6c1;
  font-family: "Euclid_Regular";
  font-size: 23px;
  color: #10183d;
  cursor: pointer;
  transition: all 0.5s ease;
}

.btn-sign {
  margin-top: 71px;
  margin-bottom: 50px;
}

.btn-sign:hover,
.submit.btn.btn-secondary.btn-login:hover,#registration_submit:hover {
  background-color: #ffffff;
  text-decoration: none;
}

.password-field,
#user_session_login {
  max-width: 416px;
}

#user_session_password,
#user_session_login {
  width: 100%;
  padding: 0.95rem;
  padding-left: 28px;
  margin-bottom: 21px;
  font-family: "Euclid_Regular";
  font-size: 20px;
  border: none;
  border-radius: 31px;
}

.password-eye {
  display: none;
}

#new_user_session > div:nth-child(5) {
  text-align: justify;
}

.forgot-pass {
  display: block;
  text-align: center;
  font-size: 0.875rem;
  color: #ffffff;
  text-decoration: underline;
}

/* Log box  */
.log-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  background-color: rgba(2, 22, 75, 0.8);
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.log-box {
  width: 416px;
  max-width: 90%;
  background-color: transparent;
  text-align: start;
  position: relative;
  margin-top: 128px;
}

.close-btn {
  width: 30px;
  height: 30px;
  position: absolute;
  right: -70px;
  top: -22px;
  background: url(https://clearstream-static.s3.eu-west-1.amazonaws.com/investec/lates/lp/media/x_v1.png);
  background-repeat: no-repeat;
  border: 0;
  cursor: pointer;
}

.show {
  opacity: 1;
  visibility: visible;
}

.log-box h2 {
  font-size: 39px;
  font-weight: normal;
  color: #ffffff;
  margin-bottom: 29px;
}

.log-box input {
  height: 62px;
  width: 470px;
  max-width: 100%;
  border: 1px solid #174b78;
  border-radius: 5px;
  margin-bottom: 24px;
  padding: 23px 21px;
  font-size: 20px;
}

.log-box .btn-login {
  margin-bottom: 31px;
  padding: 0;
}

.log-box .btn-login:hover {
  background-color: #ffffff;
  text-decoration: none;
}

.password-eye.show-icon,
.password-eye.hide-icon.hidden {
  display: none;
}

.forgot-pass {
  display: block;
  font-size: 16px;
  color: #ffffff;
  text-align: left;
  margin-top: 39px;
}

.forgot-pass:hover {
  text-decoration: underline;
}

#new_user_session > div.alert.alert-danger.errorExplanation > p {
  padding: 5px;
  font-size: 15px;
  color: #ff4545;
  font-weight: bold;
}

/* Footer */
footer {
  background-color: rgb(242, 247, 251);
  color: #10183d;
  padding: 65px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

footer > .container-footer {
  width: 1795px;
  max-width: 90%;
  margin: auto;
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 50px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-left > img {
  width: 167px;
  height: auto;
  margin-bottom: 30px;
}

.footer-left > p {
  font-size: 1.125rem;
  line-height: 1.5;
}

.footer-right > p {
  font-size: 1.125rem;
  text-align: end;
  line-height: 1.5;
}

.footer-right > p > a {
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-right > p > a:hover {
  text-decoration: underline;
}

/* Legals Styles */
.legals-container {
  min-height: 100vh;
  padding-bottom: 80px;
}

.legals-box {
  width: 100%;
  padding: 0 93px 0 95px;
  margin: auto;
  background-color: transparent;
  color: #ffffff;
}

.legals-box h1 {
  margin-top: 20px;
  margin-bottom: 30px;
}

.legals-box > h2 {
  padding-top: 10px;
  margin-bottom: 15px;
}

.legals-box p {
  font-size: 16px;
  margin-bottom: 15px;
}

.legals-box ol {
  margin-left: 25px;
  margin-bottom: 15px;
}

.legals-box ul {
  margin-left: 25px;
  margin-bottom: 15px;
}

.legals-box a {
  color: #ffffff;
}

.legals-box td {
  padding-left: 20px;
  padding-right: 20px;
}

/* Mobile Styles */

@media (max-width: 1500px) {
  .main-container {
    background-size: 48%;
  }

  .form-container p {
    width: 700px;
  }

  .logo-bar {
    padding: 30px 3% 57px 3%;
  }

  .form-container {
    padding: 71px 3% 0 3%;
  }

  .log-box {
    width: 416px;
    background-color: transparent;
    text-align: start;
    position: relative;
    margin-top: 50px;
    margin-bottom: 50px;
  }

  .log-box .btn-login {
    margin-bottom: 16px;
  }

  .forgot-pass {
    margin-top: 0;
  }

  .legals-box {
    width: 100%;
    padding: 0 3% 0 3%;
  }
}

@media (max-width: 1000px) {
  .logo-bar {
    min-height: unset;
    padding: 30px 3% 30px 3%;
  }

  .form-container {
    padding: 50px 3% 0 3%;
  }
}

@media (max-width: 880px) {
  .main-container {
    background-size: 60%;
  }

  .btn-nav {
    padding: 9.5px 40px 13.5px 40px;
    font-size: 20px;
  }

  .form-container p:nth-child(1) {
    font-size: 21px;
  }

  .form-container h1 {
    font-size: 50px;
    margin-bottom: 25px;
  }

  .form-container p {
    font-size: 20px;
    margin-bottom: 20px;
  }

  #user_session_password,
  #user_session_login {
    font-size: 20px;
  }

  .log-box input {
    height: 60px;
  }

  .btn-sign,
  .submit.btn.btn-secondary.btn-login,#registration_submit {
    height: 60px;
    width: 200px;
    font-size: 20px;
  }

  .btn-sign {
    margin-top: 30px;
  }

  .close-btn {
    width: 23px;
    height: 23px;
    right: 0;
    top: -22px;
    background-size: 23px;
  }

  footer {
    padding: 45px 0;
  }

  footer > .container-footer {
    max-width: 90%;
    gap: unset;
  }

  .footer-left > p,
  .footer-right > p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .footer-left,
  .footer-right {
    width: 50%;
  }
}

@media (max-width: 500px) {
  .logo-bar > a > img {
    height: 13px;
  }

  .btn-nav {
    padding: 7.5px 20px 11.5px 20px;
    font-size: 16px;
  }

  .main-container {
    background-size: 50%;
  }

  .form-container {
    padding: 20px 3% 0 3%;
  }

  .form-container h1 {
    font-size: 40px;
  }

  .form-container p {
    font-size: 16px;
    margin-bottom: 15px;
  }

  #user_session_password,
  #user_session_login {
    width: 100%;
    padding: 0.95rem;
    padding-left: 28px;
    margin-bottom: 21px;
    font-family: "Euclid_Regular";
    font-size: 23px;
    text-transform: capitalize;
    border: none;
    border-radius: 31px;
  }

  #user_session_password,
  #user_session_login {
    font-size: 18px;
  }

  .log-box input {
    height: 50px;
  }

  .btn-sign,
  .submit.btn.btn-secondary.btn-login,#registration_submit {
    height: 50px;
    width: 180px;
    font-size: 18px;
  }

  .footer-left > img {
    width: 120px;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .main-container {
    background: unset;
  }

  .close-btn {
    right: 9px;
    top: 15px;
  }
}
