.sign {
  color: rgb(0, 128, 128);
  font-size: 40px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.5px;
  margin: 20px 0 30px;
}

.overlay-panel p {
  color: #ffffff;
  margin: 20px 0 30px;
}

.overlay-panel h2 {
  color: #fff;
  font-size: 40px;
  font-weight: 600;
}

span {
  font-size: 12px;
}

button {
  border-radius: 20px;
  border: 1px solid #ff4b2b;
  background-color: #ff4b2b;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  padding: 12px 45px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 80ms ease-in;
}

.btn-up {
  border-radius: 10px;
  border: none;
  background-color: #03532d;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  padding: 12px 45px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 80ms ease-in;
  margin-top: 20px;
}

.btn-in {
  border-radius: 10px;
  border: none;
  background-color: #03532d;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  padding: 12px 45px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 80ms ease-in;
}

button:active {
  transform: scale(0.95);
}

button:focus {
  outline: none;
}

button.ghost {
  background-color: transparent;
  border-color: #ffffff;
}

form {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 50px;
  height: 100%;
  text-align: center;
}

.forget-form {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0;
  height: 100%;
  text-align: center;
}

.forget-form input {
  background-color: #eee;
  border: none;
  padding: 12px 15px;
  margin: 8px 0;
  width: 100%;
}

input {
  background-color: #eee;
  border: none;
  padding: 12px 15px;
  margin: 8px 0;
  width: 100%;
}

/* Forgot Password Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: #ffffff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
  width: 400px;
  max-width: 90%;
  animation: slideIn 0.5s;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* margin-bottom: 20px; */
}

.modal-header h2 {
  color: rgb(0, 128, 128);
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

.modal-body p {
  margin-bottom: 20px;
  color: #555;
}

.reset-btn {
  border-radius: 10px;
  border: none;
  background-color: #03532d;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  padding: 12px 45px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 80ms ease-in;
  width: 100%;
  margin-top: 10px;
}

.back-link {
  display: block;
  margin-top: 15px;
  color: #514a9d;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

/* Responsive adjustments for the modal */
@media only screen and (max-width: 480px) {
  .modal-content {
    margin: 20% auto;
    padding: 20px;
    width: 85%;
  }

  .modal-header h2 {
    font-size: 24px;
  }

  .reset-btn {
    padding: 10px 30px;
  }
}

.social-container1 {
  margin: 20px 0;
}

.social-container1 a {
  border: 1px solid #dddddd;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0 5px;
  height: 40px;
  width: 40px;
  color: #000;
}

.container1 {
  background-color: #ffffff;
  border-radius: 1px;
  box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
  position: relative;
  overflow: hidden;
  width: 900px;
  /* height: 100vh; */
  max-width: 100%;
  min-height: 700px;
  border-radius: 10px;
  margin: auto;
}

.form-container1 {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.6s ease-in-out;
}

.sign-in-container1 {
  left: 0;
  width: 50%;
  z-index: 2;
}

.sign-up-container1 {
  left: 0;
  width: 50%;
  opacity: 0;
  z-index: 1;
}

.container1.right-panel-active .sign-in-container1 {
  transform: translateX(100%);
}

.container1.right-panel-active .sign-up-container1 {
  transform: translateX(100%);
  opacity: 1;
  z-index: 5;
  animation: show 0.6s;
}

@keyframes show {
  0%,
  49.99% {
    opacity: 0;
    z-index: 1;
  }

  50%,
  100% {
    opacity: 1;
    z-index: 5;
  }
}

.overlay-container1 {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.6s ease-in-out;
  z-index: 100;
}

.container1.right-panel-active .overlay-container1 {
  transform: translateX(-100%);
}

.overlay {
  background: rgb(0, 128, 128);
  background: linear-gradient(
    159deg,
    rgba(0, 128, 128, 1) 0%,
    rgba(0, 153, 144, 1) 100%
  );
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 0 0;
  color: #ffffff;
  position: relative;
  left: -100%;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}

.container1.right-panel-active .overlay {
  transform: translateX(50%);
}

.overlay-panel {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  text-align: center;
  top: 0;
  height: 100%;
  width: 50%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}

.overlay-panel h1 {
  color: white;
}

.overlay-left {
  transform: translateX(-20%);
}

.container1.right-panel-active .overlay-left {
  transform: translateX(0);
}

.overlay-right {
  right: 0;
  transform: translateX(0);
}

.container1.right-panel-active .overlay-right {
  transform: translateX(20%);
}

#info {
  margin-top: 1rem;
  text-align: center;
}

.main-login {
  padding: 100px 0;
}

.forget {
  color: #514a9d;
  font-size: 14px;
  text-decoration: none;
  margin: 15px 0;
}

.home-button a i {
  color: #fff;
}

.home-button a {
  position: absolute;
  top: 20px;
  left: 20px;
  color: #fff;
  font-weight: 600;
}

.home-button1 a i {
  color: #fff;
}

.home-button1 a {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-weight: 600;
}

/* Custom styles for two-column inputs */
.input-row {
  display: flex;
  width: 100%;
  gap: 10px;
  margin: 8px 0;
}

.input-row input {
  margin: 0;
}

/* Password input container styles */
.password-container {
  position: relative;
  width: 100%;
  margin: 8px 0;
}

.password-container input {
  margin: 0;
  padding-right: 40px;
  /* Space for the eye icon */
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
  z-index: 10;
}

.toggle-password:hover {
  color: #333;
}

/* Responsive adjustments */
@media only screen and (max-width: 480px) {
  .password-container {
    margin: 6px 0;
  }

  .password-container input {
    padding-right: 36px;
  }

  .toggle-password {
    right: 12px;
  }
}

/* Custom styles for input rows with password fields */
.input-row .password-container {
  flex: 1;
  margin: 0;
}

/* Responsive CSS for login/register form */

/* First, reset some transformations that cause issues */
@media only screen and (max-width: 768px) {
  /* Main container adjustments */
  .container1 {
    width: 95%;
    min-height: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  /* Fix form containers */
  .form-container1 {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 400px;
    transform: none !important;
  }

  /* Handle sign up/in containers */
  .sign-in-container1,
  .sign-up-container1 {
    width: 100%;
    left: 0;
    transform: none !important;
  }

  /* Hide/show based on active panel instead of transforming */
  .container1.right-panel-active .sign-in-container1 {
    display: none;
  }

  .container1.right-panel-active .sign-up-container1 {
    display: block;
    opacity: 1;
    z-index: 5;
  }

  .container1:not(.right-panel-active) .sign-up-container1 {
    display: none;
  }

  .container1:not(.right-panel-active) .sign-in-container1 {
    display: block;
  }

  /* Overlay container adjustments */
  .overlay-container1 {
    position: relative;
    width: 100%;
    height: 650px;
    left: 0;
    order: -1;
    transform: none !important;
  }

  /* Fix the overlay */
  .overlay {
    position: absolute;
    left: 0 !important;
    width: 100% !important;
    height: 100%;
    transform: none !important;
  }

  /* Position overlay panels */
  .overlay-panel {
    width: 100%;
    height: 100%;
    transform: none !important;
  }

  .container1.right-panel-active .overlay-left {
    display: block;
  }

  .container1.right-panel-active .overlay-right {
    display: none;
  }

  .container1:not(.right-panel-active) .overlay-left {
    display: none;
  }

  .container1:not(.right-panel-active) .overlay-right {
    display: block;
  }

  /* Adjust button and text sizes */
  .overlay-panel h2 {
    font-size: 24px;
    margin-top: 15px;
  }

  .overlay-panel p {
    margin: 10px 0 15px;
    font-size: 14px;
  }

  .sign {
    font-size: 24px;
    margin: 15px 0;
  }

  button {
    padding: 10px 30px;
  }

  .btn-up,
  .btn-in {
    padding: 10px 30px;
  }

  /* Form inputs */
  .input-row {
    gap: 5px;
  }

  input {
    padding: 10px;
  }

  /* Better spacing */
  form {
    padding: 0 20px;
  }

  .home-button a {
    top: 88%;
    left: 34%;
  }
}

/* Very small screens */
@media only screen and (max-width: 480px) {
  .container1 {
    width: 90%;
    border-radius: 10px;
  }

  .input-row {
    flex-direction: column;
    gap: 0;
  }

  .home-button a {
    top: 88%;
    left: 34%;
  }

  .input-row input {
    margin: 8px 0;
  }

  .overlay-panel h2 {
    font-size: 20px;
  }

  .overlay-panel p {
    font-size: 15px;
    margin: 0;
  }

  button.ghost {
    margin-top: 15px;
  }

  .sign {
    font-size: 20px;
  }

  /* Adjust home buttons */
  .home-button a,
  .home-button1 a {
    font-size: 14px;
  }

  .home-button1 a {
    top: 91%;
    right: 34%;
  }

  /* Make form scrollable on small screens */
  .form-container1 form {
    overflow-y: auto;
    padding: 15px;
  }
}
