@import url("https://fonts.googleapis.com/css2?family=Oxanium:wght@200..800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Oxanium", sans-serif;
}

body {
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: #fff;
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  animation: fadeIn 0.2s ease;
  overflow: hidden;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Left Section */
.left-section {
  height: 100vh;
  width: 45%;
  background: url("../assets/reg-bg.jpg") no-repeat center / 100% 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.branding {
  display: flex;
  flex-direction: row;
  margin-bottom: 160px;
  gap: 10px;
}

.branding h1 {
  color: #fdd835;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 12px;
}

.motto {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.motto h2 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 600;
}

.motto p {
  font-size: 16px;
  color: #fdd835;
  font-weight: 300;
}

.right-section {
  height: 100%;
  flex: 1;
  background: #fff;
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px;
  position: relative;
}

.nav {
  display: flex;
  flex-direction: row;
  position: absolute;
  top: 20px;
  right: 10px;
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 10px;
  padding: 10px 20px;
  background-color: #ffcc00;
  border-radius: 20px;
  transition: 0.5s;
}

.nav a:hover {
  background-color: #d4ae04;
}

.form-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 450px;
  margin-top: 50px;
  height: 500px;
}

.form-container h2 {
  font-size: 2rem;
  margin-bottom: 2px;
  margin-top: -10px;
  text-align: center;
}

.form-container form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
}

.form-container input,
.form-container select,
.form-container button {
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #d3d3d3;
  border-radius: 1px;
  font-size: 14px;
  transition: ease 0.5s;
}

.input-group {
  position:  relative;
}

.input-group input {
  width: 100%;
}

.input-group ion-icon {
  position: absolute;
  right: 10px;
}

.form-container .confirm-input {
  margin-bottom: 0;
}

.form-container .input-group .user-icon {
  position: absolute;
  top: 35%;
  right: 10px;
  color: #a0a0a0;
  height: 18px;
  width: 18px;
}

.form-container .input-group .pass-icon {
  position: absolute;
  top: 35%;
  right: 10px;
  color: #a0a0a0;
  height: 18px;
  width: 18px;
}

.form-container .input-group .confirm-pass-icon {
  position: absolute;
  top: 45%;
  right: 10px;
  color: #a0a0a0;
  height: 18px;
  width: 18px;
}

.message {
  font-size: 0.8rem;
  font-family: Montserrat, 'sans-serif';
}

.message.error {
  color: var(--red);
}

.message.success {
  color: var(--green);
}

.date-empty {
  color: #999;
}

.form-container input::placeholder {
  color: #999;
}

.form-container option::placeholder {
  color: #999;
}

.form-container input:hover {
  border: 1px solid #a0a0a0;
}

.form-container input:focus {
  outline: none;
  border: 1.5px solid #ffcc00;
  background: rgba(255, 250, 250, 0.2);
}

.phone {
  display: flex;
  align-items: center;
}

.phone span {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #d3d3d3;
  padding: 10px;
  border-radius: 1px 0 0 1px;
  margin-top: -15px;
  height: 44px;
  font-weight: bold;
}

.phone input {
  flex: 1;
  border-left: none;
  border-radius: 0 1px 1px 0;
}

.phone input:hover {
  border-left: none;
}

.phone input:focus {
  border-left: none;
}

.form-error {
  color: rgb(255, 83, 83);
  font-size: small;
  font-weight: normal;
  font-family: "Montserrat", sans-serif;
}

.error-wrapper {
  height: 20px;
  margin-bottom: 5px;
  overflow: hidden;
}

.form-container button {
  background-color: #ffcc00;
  color: #ffffff;
  font-size: medium;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s;
}

.form-container button:hover {
  background-color: #e6bb00;
}

.form-container select {
  width: 250px;
}

.form-container select:hover {
  border: 1px solid #a0a0a0;
}

.form-container select:focus {
  outline: none;
  border: 1.5px solid #ffcc00;
  background: rgba(255, 250, 250, 0.2);
}

.form-container .divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: bold;
  color: #a0a0a0;
  position: relative;
}

.form-container .divider:before,
.form-container .divider:after {
  content: "";
  width: 32%;
  height: 1px;
  background-color: #a0a0a0;
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
}

.form-container .divider:before {
  left: 0;
}

.form-container .divider:after {
  right: 0;
}

.form-container .user-icon {
  position: absolute;
  top: 35%;
  right: 160px;
  color: #a0a0a0;
  height: 18px;
  width: 18px;
}

.form-container .pass-icon {
  position: absolute;
  top: 45%;
  right: 160px;
  color: #a0a0a0;
  height: 18px;
  width: 18px;
}

.form-container .confirm-pass-icon {
  position: absolute;
  top: 55%;
  right: 160px;
  color: #a0a0a0;
  height: 18px;
  width: 18px;
}

.progress-indicator {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  width: 100%;
}

.progress-indicator span {
  display: block;
  width: 20px;
  height: 20px;
  background-color: #d3d3d3;
}

.progress-indicator .active {
  background-color: #f4ce00;
}

.email-notification {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f4ce00;
  padding: 10px;
  border-radius: 1px;
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
}

.email-notification .email-icon {
  width: 50px;
  height: 50px;
  background: url("../assets/email.svg") center/contain no-repeat;
  margin: 5px;
}

.email-notification p {
  font-size: 14px;
  margin-bottom: 5px;
}

.otp-message {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  font-size: 14px;
  color: #292929;
}

.otp-message .title {
  font-weight: 500;
  margin-bottom: 9px;
}

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.otp-inputs input {
  height: 100px;
  border: 1px solid #d3d3d3;
  text-align: center;
  font-size: 2.5rem;
  border-radius: 1px;
  width: 100%;
}

.resend-text {
  font-size: 14px;
  margin-bottom: 15px;
}

.resend-text a {
  color: #f4ce00;
  text-decoration: none;
}

.resend-text a:hover {
  text-decoration: underline;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 450px;
  margin-top: 50px;
}

.content h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  align-self: center;
}

.content img {
  width: 250px;
  height: 250px;
  margin-bottom: 20px;
  align-self: center;
}

.content p {
  font-size: 14px;
  color: #292929;
  margin-bottom: 43px;
  align-self: center;
}

.content button {
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #d3d3d3;
  border-radius: 1px;
  font-size: 14px;
  transition: ease 0.5s;
  background-color: #ffcc00;
  color: #ffffff;
  font-size: medium;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s;
  width: 100%;
}

.progress-bar {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.step {
  width: 20px;
  height: 20px;
  background-color: #f5f5f5;
  transition: background-color 0.3s;
  margin-right: 20px;
}

.line {
  width: 155px;
  height: 1px;
  background-color: #d3d3d3;
  margin-right: 20px;
}

.step.active {
  background-color: #f4ce00;
}

.step:not(.active) {
  background-color: #d3d3d3;
}

@media only screen and (max-width: 1200px) {
  body {
    flex-direction: column;
    height: auto;
    overflow-y: auto;
  }

  .left-section {
    width: 100%;
    height: auto;
    border-radius: 0;
    padding: 20px 20px;
    align-items: start;
    text-align: start;
    position: sticky;
    top: 0;
    z-index: 1;
    display: none;
  }

  .branding {
    margin-bottom: 80px;
    justify-content: start;
  }

  .branding h1 {
    font-size: normal;
    font-weight: 300;
  }

  .motto h2 {
    font-size: 1.8rem;
    font-weight: 300;
  }

  .motto p {
    font-size: 14px;
    font-weight: normal;
  }

  .right-section {
    width: 100%;
    padding: 20px 20px;
    align-items: center;
    border-radius: 0;
  }

  .nav {
    position: static;
    margin-bottom: 0;
    justify-content: center;
  }

  .form-container {
    width: 100%;
    max-width: 100%;
  }

  .form-container select {
    width: 100%;
  }

  .form-container .user-icon {
    position: absolute;
    top: 38%;
    right: 30px;
    color: #a0a0a0;
    height: 18px;
    width: 18px;
  }

  .form-container .pass-icon {
    position: absolute;
    top: 48%;
    right: 30px;
    color: #a0a0a0;
    height: 18px;
    width: 18px;
  }

  .form-container .confirm-pass-icon {
    position: absolute;
    top: 58%;
    right: 30px;
    color: #a0a0a0;
    height: 18px;
    width: 18px;
  }

  .progress-bar {
    flex-direction: row;
    align-self: center;
  }

  .line {
    display: none;
  }

  .otp-inputs input {
    height: 60px;
    font-size: 1.5rem;
  }

  .content {
    width: 100%;
    padding: 0 10px;
    margin-top: 30px;
  }

  .content img {
    width: 150px;
    height: 150px;
  }

  .content h1 {
    font-size: 1.8rem;
  }

  .content p {
    font-size: 13px;
    margin-bottom: 30px;
  }
}
