@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-image: url("../Resources/SA_login_bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
}

.container {
  width: 30%;
  height: 60vh;
  min-width: 300px;
}

.login-form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  box-shadow: #262424 0px 0px 20px 0px;
  background-color: white;
  border-radius: 8px;
  height: 100%;
}

h2 {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  color: #1E1E1E;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
  width: 80%;
  position: relative;
}

form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #1E1E1E;
}

.form-group input {
  height: 45px;
  width: 100%;
  padding: 10px;
  border: none;
  background-color: #ECECEC !important;
  border-radius: 5px;
  font-size: 0.9rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  padding: 10px;
  border: 1px solid #ccc;
}
.input-container {
  position: relative;
  width: 80%;
  margin-bottom: 15px;
}
.input-container input {
  width: 100%;
  padding: 12px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.9rem;
  background-color: #ECECEC !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.form-group i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  font-size: 20px;
  color: #888;
  pointer-events: none;
}

.form-group input {
  width: 100%;
  padding: 12px 12px 12px 40px; /* space for icon */
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  background-color: #ECECEC;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: #1e1e1e;
}

.form-group label {
  position: absolute;
  top: 50%;
  left: 40px;
  transform: translateY(-50%);
  font-size: 16px;
  color: #888;
  background-color: #ECECEC;
  padding: 0 4px;
  pointer-events: none;
  transition: 0.3s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: 0px;
  left: 36px;
  font-size: 0.75rem;
  color: #1e1e1e;
}

i {
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 2.5rem;
  cursor: pointer;
  color: white;
  z-index: 1;
}

button {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  width: 40%;
  min-width: 150px;
  padding: 10px;
  height: 60px;
  background: linear-gradient(to bottom, #EAC00D, #d4b00a);
  color: white;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  margin-top: 30px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

button:hover {
  background-color: #d2ad0a;
  transition: all 0.3s;
  transform: scale(1.02);
}

.logo-container {
  position: absolute;
  height: auto;
  width: 25%;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10; /* Ensure it's above the background image */
}

.protech-logo {
  width: 80px;
  height: 80px;
  aspect-ratio: 1/1;
  margin-bottom: 10px;
}

.protech-text {
  font-size: 4rem;
  font-weight: bold;
  color: white; /* Adjust color as needed */
}
.color-shift {
  color: #d7f266;
  font-weight: 700;
}

.forgot_password {
  margin-top: 20px;
}

.forgot_password a {
  color: white;
  font-size: 0.8rem;
  text-decoration: none;
}
.forgot_password a:hover {
  text-decoration: underline;
}
@media screen and (max-width: 992px) {
  .container {
    width: 90%;
    min-height: fit-content;
    height: 60%;
    max-width: 400px;
  }

  .login-form {
    height: 100%;
    padding: 20px;
  }

  .logo-container {
    width: 50%;
    top: 30%;
  }
  h2{
    font-size: clamp(1.4rem, 2vw, 1.75rem);
  }

  .protech-text {
    font-size: 3rem;
  }

  button {
    font-size: clamp(1rem, 2vw, 1.4rem);
    width: 40%;
    min-width: 150px;
  }
  label{
    font-size: 0.9rem;
  }
  .form-group input {
    width: 100%;
    min-width: 200px;
  }
}
