@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;
  font-family: "Inter", sans-serif;
}

body {
  font-family: Lato, 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%;
  box-shadow: inset 0 0 20px 30px rgba(0, 0, 0, 0.3);
}

.left-section {
  width: 55%;
  flex-grow: 1;
  height: 100vh;
  position: relative;
}
.mobile-background{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.right-section {
  width: 45%;
  display: flex;
  flex-grow: 1;
  height: 100vh;
  min-width: 400px;
  padding: 30px;
  padding-right: 200px;
}

.login-form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  background-color: white;
  height: 100%;
  min-width: 400px;
  border-radius: 10px;
}

h2 {
  border-top: 1px solid #EAC00D;
  font-weight: 600;
  padding-top: 10px;
  font-size: clamp(1rem, 2vw, 1.7rem);
  color: white;
  margin-bottom: 30px;
}

.form-group {
  width: 100%;
  height: 50px;
  margin-bottom: 15px;
  text-align: left;
}

.password-container {
  position: relative;
}

.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper input {
  width: 100%;
  padding: 10px 35px 10px 10px;
}

.password-input-wrapper .toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #777;
  font-size: 1.2rem;
}

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

p {
  font-size: 1rem;
  margin-top: 10px;
}

form {
  width: 70%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: white;
}
.line {
  width: 40%;
  height: 2px;
  background-color: #b9b9b9;
  margin-top: 0.7em;
}
.left-section .line{
  display: none;
}
.protech-login-text {
  color: #262424;
  font-weight: 300;
  font-size: 0.9rem;
  margin: 0.7rem;
  margin-bottom: 2rem;
}
.form-group input {
  height: 45px;
  width: 100%;
  padding: 10px;
  border: unset !important;
  background-color: #ECECEC !important;
  border-radius: 5px;
  font-size: 0.9rem;
}

button {
  font-weight: bold;
  font-size: 1.12rem;
  width: 100%;
  padding: 10px;
  height: 60px;
  background: linear-gradient(to bottom, #EAC00D, #d4b00a);
  color: white;
  border: none;
  border-radius: 100px;
  margin-top: 1.5rem;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

button:hover {
  background-color: #d2ad0a;
  transition: all 0.5s;
  transform: scale(1.05);
}

.logo-container {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}

.protech-logo {
  width: 12vw;
  height: auto;
  aspect-ratio: 1/1;
}

.protech-text-img {
  width: 40%;
  height: auto;
  margin-top: -10px;
}
.protech-text-img-sub {
  width: 55%;
  height: auto;
  margin-top: -10px;

}
.color-shift {
  color: #EAC00D;
  font-weight: 700;
}

.forgot_password {
  margin-top: 20px;
}

.forgot_password a {
  color: #262424;
  font-size: 0.8rem;
  text-decoration: none;
}
.forgot_password a:hover {
  text-decoration: underline;
}
.protech-sub{
  margin-top: -2px;
  margin-bottom: 5px;
  font-size: clamp(0.8rem, 1.5vw, 1.3rem);
  line-height: 1.4;
  color: rgb(235, 235, 235);
  font-weight: 550;
}

  .m-protech-text{
    margin-top: -5px;
    font-size: clamp(1.75rem, 3vw, 3rem);
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
  }

  /* Add these styles to your existing admin_login.css */

/* Style for input containers with icons */
.input-with-icon {
    position: relative;
    margin-bottom: 20px;
    height: auto; /* Remove fixed height */
}

/* Style for the icons */
.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #555;
    z-index: 2;
}

/* Adjust input padding to make space for icons */
.input-with-icon input {
    width: 100%;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    padding: 12px 15px 12px 50px; /* Increased left padding for icons */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* Specific style for the password toggle icon */
.input-with-icon .toggle-password {
    left: auto; /* Override left positioning */
    right: 15px; /* Position on the right side */
    cursor: pointer;
}

/* Remove the existing password container styles that might conflict */


/* Update the form-group to work with the new structure */
.form-group {
    margin-bottom: 20px; /* Increased margin for better spacing */
    text-align: left;
    height: auto; /* Remove fixed height */
}
.input-container {
  position: relative;
  width: 100%;
}
.input-container label {
  position: absolute;
  left: 50px; /* align with input text after icon */
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: #777;
  pointer-events: none;
  transition: all 0.3s ease;
}
.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label {
  top: 0px;
  left: 45px;
  font-size: 0.75rem;
  color: #363636; /* matches your theme */
  background: white;
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 500;
}

@media screen and (max-width: 992px) {

  body{
    display: flex;
    flex-wrap: unset;
    flex-direction: row;
    background-color: white;
    background-image: none;
    box-shadow: unset;
  }

  .login-form{
    justify-content: start;
  }
  .left-section {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: unset;
    flex: 1;
    padding: 10px;
  }
  .mobile-background{
    background-image: url("../Resources/SA_login_bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex: 1;
    border-radius: 10px;
    min-width: 300px;

  }
  .right-section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
    height: auto;
    min-width: unset;
    flex: 1;
    padding: unset;
  }
  .logo-container{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .protech-logo {
    width: 100px;
    height: auto;
  }
  .protech-text {
    margin-top: -5px;
    font-size: 2rem;
    display: none;
  }
  h2 {
    border-top: 1px solid rgb(223, 223, 223);
    padding-top: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    margin-bottom: 30px;
  }
  .form-group {
    width: 100%;
  }
  .signin-button{
    width: 100%;
    height: 50px;
    font-size: 1rem;
  }
.protech-sub{
  font-size: 0.9rem;
  margin-top: 0;
}
  label{
    font-size: 0.9rem;
  }
  .m-protech-text{
    margin-top: -5px;
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
  }
  .protech-text-img{
    margin-top: 0px;
    width: 45%;
    height: auto;
    margin-bottom: unset;
  }
  .login-form{
    background-color: transparent !important;
  }
  .form-group input {
    height: 40px;
  }
}
@media screen and (max-width: 768px) {
  .left-section {
    display: none;
  }

  .right-section {
    width: 100%;
    min-height: 100vh; /* ensure it covers full height */
    padding: 20px;
    background: url("../Resources/SA_login_bg.png") no-repeat center center;
    background-size: cover;
    background-color: #000; /* fallback to avoid white gaps */
    background-attachment: scroll; /* safer on mobile */
    padding: 20px;
    height: 100vh;
  }

  .login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: unset;
    width: 100%;
    padding: 20px;
    border-radius: 8px;
    height: 70%;
    background-color: white !important;
    max-width: 400px;
  }
  .login-form form{
    width: 80%;
  }
  #mfaModal form{
    width: 100% !important;
  }

  .form-group input {
    height: 40px;
    font-size: 0.85rem;
  }

  button {
    height: 50px;
    font-size: 1rem;
  }
}
@media screen and (max-width: 400px) {
  #mfaModal .modal-content{
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
  }
  .input-container input{
    font-size: 0.8rem;
  }
  .otp-inputs input {
    min-width: 25px;
    font-size: 0.9rem;
  }
  
}

/* Remove native eye icon in Chrome, Edge, Safari */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-clear-button,
input[type="password"]::-webkit-textfield-decoration-container {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none;
  width: 0;
  height: 0;
}
    .modal {
      display: none;
      position: fixed;
      z-index: 9999;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
      background-color: rgba(0, 0, 0, 0.6);
      animation: fadeIn 0.3s ease-in-out;
    }

    .modal-content {
      background: #fff;
      margin: 10% auto;
      padding: 20px 25px;
      border-radius: 12px;
      width: 90%;
      max-width: 380px; /* modal width */
      text-align: center;
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
      animation: slideDown 0.3s ease;
      position: relative;
      font-size: 14px; /* base font size */
      overflow: hidden; /* ensure OTP inputs stay inside */
    }

    /* Close button */
    .close-btn {
      position: absolute;
      right: 12px;
      top: 8px;
      font-size: 24px;
      color: #888;
      cursor: pointer;
    }
    .close-btn:hover { color: #e74c3c; }

    .modal-content i {
      font-size: 36px;
      color: #e74c3c;
      margin-bottom: 10px;
    }

    .modal-content h3 {
      font-size: 16px; /* smaller heading */
      font-weight: bold;
      margin-bottom: 8px;
      color: #333;
    }

    #mfaModal form{
      width: 100% !important;
    }

    .modal-content p {
      font-size: 13px; /* smaller paragraph */
      color: #555;
      margin: 6px 0;
      line-height: 1.4;
    }

    .modal-content strong {
      color: #111;
    }

    /* OTP Inputs */
    .otp-inputs {
      display: flex;
      justify-content: space-between;
      flex-wrap: nowrap;
      margin: 15px 0;
      gap: 4px;
      overflow: hidden; /* prevent overflow */
    }

    .otp-inputs input {
      flex: 1 1 0;
      min-width: 40px;
      max-width: 50px;
      height: 45px;
      font-size: 18px;
      text-align: center;
      border: 1px solid #ddd;
      border-radius: 6px;
      outline: none;
      transition: border 0.2s;
      box-sizing: border-box;
    }

    .otp-inputs input:focus { border: 2px solid #e74c3c; }

    /* Verify Button */
    .modal-content .danger-button {
      width: 100%;
      padding: 10px;
      background: #e74c3c;
      color: #fff;
      font-weight: bold;
      font-size: 14px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      transition: background 0.25s ease;
    }

    .modal-content .danger-button:hover { background: #c0392b; }

    /* Error Message Styling */
    .error-message { color: #e74c3c; font-size: 12px; margin-top: 4px; }

    /* === Animations === */
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
    @keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

    /* Responsive adjustments */
    @media (max-width: 400px) {
      .otp-inputs input { min-width: 35px; height: 40px; font-size: 16px; }
      .modal-content { padding: 15px 20px; font-size: 13px; }
      .modal-content h3 { font-size: 15px; }
      .modal-content p { font-size: 12px; }
      .modal-content .danger-button { font-size: 13px; padding: 8px; }
    }