@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+Sinhala:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  font-family: Poppins, Arial, sans-serif;
}

html,
body {
  background-image: url(../images/futuristic.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1 {
  margin: 0;
}

.logo1 {
  position: absolute;
  margin-top: 20px;
  top: 0;
  left: 0;
  z-index: 10;
  width: 800px;
}

.logo1 .image1,
.logo2 .image2 {
  display: none;
}

.motto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-left: 20px;
}

.motto-title {
  color: aliceblue;
  font-size: 80px;
  font-weight: lighter;
  font-style: normal;
  padding-left: 20px;
}

.motto-heading {
  color: aliceblue;
  font-size: 50px;
  font-weight: bolder;
  font-style: normal;
  padding-left: 20px;
  margin: 0;
}

.motto-description {
  font-weight: lighter;
  color: aliceblue;
  font-size: 20px;
  font-style: normal;
  padding-left: 20px;
  padding-right: 20px;
  margin: 0;
}

.main-section {
  flex: 1;
  display: flex;
  justify-content: center; /* Horizontal center */
  align-items: center; /* Vertical center */
  box-sizing: border-box;
}

/* Smaller side */
#main1 {
  background: linear-gradient(
    to right,
    rgba(8, 6, 30, 0.802),
    rgba(29, 15, 60, 0.779)
  );
  position: relative;
  border-radius: 10px;
  flex: 0.8;
}

/* Larger side, takes remaining space */
#main2 {
  background: linear-gradient(
    to right,
    rgba(8, 6, 30, 0.95),
    rgba(29, 15, 60, 0.859)
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 500px;
  border-radius: 10px;
  flex: 0.1;
}

#main1,
#main2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  margin: 10px;
  border-radius: 10px;
}

.pkg_Dev {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

h2 {
  color: aliceblue;
  text-align: center;
  margin-bottom: 20px;
}

label {
  margin-top: 7px;
  font-size: 14px;
  color: white;
  margin-bottom: 5px;
  display: block;
}

input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  transition: transform 0.2s ease;
}

input:focus {
  outline: none;
  box-shadow: 1px 1px 40px rgba(255, 255, 255, 0.094);
  transform: scale(1.01);
}

.icon-input {
  position: relative;
}

.icon-input input {
  padding-left: 36px;
}

.icon-input .icon {
  position: flex;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #666;
}

.toggle-pass {
  cursor: pointer;
  right: 10px;
  left: auto;
}

#password-rules {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: white;
  display: none;
}

#password-rules .valid {
  color: #00cc66;
  margin: 3px 0;
  line-height: 1.5;
  font-size: 0.83em;
}

#password-rules .invalid {
  color: #508424;
  margin: 2px 0;
  line-height: 1.4;
  font-size: 0.83em;
}

.password-container {
  position: relative;
  margin-bottom: 5px;
}

.error-message {
  font-size: 0.7em;
  color: #ffca33;
  margin-top: 5px;
}

#confirm-error {
  margin-top: -8px;
  color: #ffca33;
  font-size: 0.7em;
}

.password-container input {
  width: 100%;
  padding: 10px;
  padding-right: 42px; /* give space for eye icon */
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.password-confirm-container label {
  position: relative;
  margin-top: 10px; /* Reduce space below the input */
}

.eye-toggle {
  position: absolute;
  top: 60%;
  right: 10px;
  transform: translateY(-50%);
  background-color: #fff;
  /* border: 2px solid #007bff; */
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  outline: none;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.eye-toggle1 {
  position: relative;
  margin-top: -20px;
  margin-left: 358px;
  transform: translateY(-50%);
  background-color: #fff;
  /* border: 2px solid #007bff; */
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  outline: none;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.eye-icon {
  width: 18px;
  height: 18px;
  stroke: #000;
  stroke-width: 2;
  pointer-events: none;
}

.error-messages {
  color: #ffca33;
  font-size: 0.7em;
  margin-top: 5px;
}

.error-message1 {
  color: #ffca33;
  font-size: 0.7em;
  margin-top: -8px;
  margin-bottom: 8px;
}

.error-message2 {
  color: #ffca33;
  font-size: 0.7em;
  margin-top: -15px;
  margin-bottom: 8px;
}

button {
  width: 100%;
  padding: 12px;
  background-color: #2d174f;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: inherit;
  margin-top: 8px;
}

button:hover {
  background-color: #321958;
  box-shadow: 1px 1px 40px rgba(255, 255, 255, 0.094);
}

.switch-form {
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: aliceblue;
}

.switch-form a {
  color: #508424;
  text-decoration: none;
  font-weight: bold;
}

.switch-form a:hover {
  text-decoration: underline;
}

/* Hide the signup box initially */
.hidden {
  display: none;
}

/* Confirmation popup box */
#popupOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 999;
}

#popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 10px;
  border-radius: 8px;
  display: none;
  z-index: 1000;
}

#popup h3 {
  font-size: 20px;
  color: rgba(14, 34, 15, 0.9);
  text-align: center;
  margin: 0;
  padding: 0 5px;
}

#popup p {
  font-size: 15px;
  text-align: center;
  margin: 0;
  padding: 5px;
  padding: 0 5px;
}

#popup button {
  grid-column: span 2; /* Span across both columns */
  background-color: #214d23;
  color: white;
  border-radius: 8px;
  height: auto;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
  align-items: center;
  width: 35%;
  display: block;
  margin: 5px auto 0 auto;
}

#popup button:hover {
  background-color: #45a049;
}

#popup button:active {
  background-color: #2d6830;
  transform: scale(0.9);
}

footer {
  color: #fff;
  padding: 20px;
  text-align: center;
}

/* Large Screens (laptops, PCs, large monitors) */
@media (min-width: 1024px) {
  /* Optional: hide mobile-specific logos or styles */
  .logo1 .image1 {
    display: block;
  }
  .logo2 .image2 {
    display: none;
  }
}

/* Smaller Screens (mobiles, tablets, iPads, Samsung pads, notebooks) */
@media (max-width: 1024px) {
  #main1 {
    display: none;
  }
  #main2 {
    display: flex;
    flex-direction: column; 
    width: 100%;
    margin: 0 auto;
    background: none;
  }

  .pkg_Dev,
  .login-box {
    margin: 20px;
    background: rgba(225, 224, 232, 0.05);
  }
  /* Hide large-screen logos if needed */
  .logo1 {
    display: none;
  }

  /* Style for logo2 on small screens */
  .logo2 .image2 {
    display: block;
    width: 400px; /* or as needed */
  }
}
