* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style-type: none;
  font-family: poppins;
}

html {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  scroll-behavior: smooth;
}

body {
  background: white;
}

header {
  width: 100%;
  height: 80px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 100px;
  padding-top: 2px;
}

header .logo a {
  font-size: 30px;
  font-weight: bold;
  color: black;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.nav-bar ul {
  display: flex;
}

.nav-bar ul li a {
  display: block;
  color: black;
  font-size: 20px;
  padding: 10px 25px;
  border-radius: 50px;
  transition: .2s;
}

.nav-bar ul li a:hover {
  color: black;
  background: #eee;
}

.nav-bar ul li a.active {
  background-color: #eee;
}

.login {
  padding-left: 20px;
}

.nav-bar ul li a.navlogin {
  color: #eee;
  background-color: #11101b;
  transition: .5s;
}

.nav-bar ul li a.navlogin:hover {
  background-color: #eee;
  color: black;
}

.container {
  min-height: calc(100vh - 40px * 2);
  display: grid;
  grid-template-columns: 50% 50%;
  border-radius: 10px;
  overflow: hidden;
}

.login-left {
  display: flex;
  flex-direction: column;
  justify-content: content;
  padding-left: 100px;
  background-color: white;
}

.login-right {
  display: flex;
  justify-content: center;
}

.pass-key {
  padding-right: 30px;
}

.password-toggle {
  position: fixed;
  top: 59%;
  right: 820px; /* Adjust as needed */
  transform: translateY(-50%);
  cursor: pointer;
  width: 30px;
}

.remember-forgot {
  margin-top: 215px;
  padding: 10px 0; /* Adjust padding as needed */
  font-size: 16px; /* Adjust font size as needed */
  position: absolute;
  transform: translate(30px, -10px);
  margin-left: 250px;
}

.bg-grey {
  width: 100%;
  border-top: 0;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  padding: 1em;
  text-align: center;
  color: #212022a9;
}

.login-right img {
  width: 100%;
}

.login-header {
  margin-top: 50px;
}

.login-header h1 {
  font-size: 2rem;
  font-weight: 700;
}

.login-header p {
  margin-top: 10px;
  opacity: .7;
}

.login-form {
  width: 450px;
  margin-top: 20px;
}

.login-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.login-footer {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  font-size: 1rem;
}

.login-footer a {
  flex: 6;
  gap: 15px;
  background-color: #eee;
  border-radius: 100px;
  padding: .6rem;
  justify-content: center;
  display: flex;
  align-items: center;
  color: black;
  text-decoration: none;
  cursor: pointer;
  transition: .5s;
}

.login-footer a:hover {
  background-color: black;
  color: white;
}

.form-tem label:not(.checkboxLabel) {
  display: inline-block;
  background-color: white;
  margin-bottom: 10px;
  position: absolute;
  padding: 0 10px;
  transform: translate(30px, -10px);
  font-size: 14px;
}

input[type='email'],
input[type='password'],
input[type='text'],
input[type='number'],
input[type='tel'],
select[id='user_type'],
select[id='circle'],
input[id='Doj'] {
  border: 1px solid black;
  height: 55px;
  padding: 0 2rem;
  width: 100%;
  outline: none;
  transition: background .5s;
  font-size: 18px;
  border-radius: 100px;
  position: relative;
}

.pass-key {
  border: 1px solid black;
  height: 55px;
  padding: 0 2rem;
  width: 100%;
  outline: none;
  transition: background .5s;
  font-size: 18px;
  border-radius: 100px;
}

.show {
  display: block;
  position: absolute;
  margin-left: 380px;
  bottom: 250px;
  font-size: 15px;
  color: black;
  cursor: pointer;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 7px;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: black;
}

button {
  border: none;
  padding: 1rem;
  height: 55px;
  font-size: 18px;
  border-radius: 100px;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: 30px;
  transition: .5s;
}

button:hover {
  background: black;
  color: white;
}

::placeholder {
  color: grey;
  font-size: 1rem;
}


.login-home a {
    display: inline-block;
    background-color: #007bff;
    color: white;
    margin-left: 15px;
    margin-top: 20px;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 1.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.login-home a:hover {
    background-color: #0056b3;
}

/* Optimizations for low-res devices */
@media(max-width:1300px) {
  header {
      position: 0 50px;
  }
  .login-left {
      padding: 50px !important;
  }
  .login-right {
      width: 500px;
  }
  .login-form {
      width:100%;
  }
  .login-footer {
      flex-direction: column;
      gap: 15px;
  }
}

@media(max-width:1100px) {
  header {
      padding: 0 30px;
  }
  .login-right {
      width: 400px;
  }
}

@media(max-width:900px) {
  .login-header h1 {
      font-size: 25px;
  }
  .login-header p {
      font-size: 16px;
  }
  .login-right {
      width: 400px;
  }
  .container.active {
      filter: blur();
  }
  .container.active {
      filter: blur(15px);
  }
  .hamburger {
      display: block;
      z-index: 99999;
  }
  .hamburger .line {
      width: 30px;
      height: 3px;
      background: black;
      margin: 6px 0;
      cursor: pointer;
  }
  .nav-bar {
      height: 0;
      position: absolute;
      top: 90px;
      left: 0;
      right: 0;
      width: 100vw;
      z-index: 999;
      transition: .5;
      overflow: auto;
  }
  .nav-bar.active {
      height: 800px;
  }
  .nav-bar ul {
      display: block;
      width: fit-content;
      margin: 160px auto 0 auto;
      text-align: center;
      transition: .5s;
      opacity: 0;
  }
  .nav-bar.active ul {
      opacity: 1;
      transition: .5;
  }
  .nav-bar ul li a {
      display: block;
      color: black;
      margin-top: 40px;
      font-size: 25px;
      font-weight: 900;
      margin-bottom: 12px;
  }
}

@media(max-width:768px) {
  .login-header h1 {
      font-size: 30px;
  }
  body {
      padding: 20px;
  }
  .container {
      grid-template-columns: auto;
  }
  .login-right {
      display: none;
  }
}

.alert {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  padding: 10px 20px;
  border-radius: 5px;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
}

/* Scope styles to container-fluid */
.container-fluid .form-group label {
  font-weight: bold; /* Make the label bold */
  display: block; /* Ensure the label is on its own line */
  margin-bottom: 5px; /* Add some space below the label */
}

.container-fluid .form-group .form-control {
  border: 1px solid #ced4da; /* Add a light border */
  border-radius: 5px; /* Rounded corners */
  padding: 10px; /* Add some padding for a comfortable input size */
  font-size: 16px; /* Slightly larger font size */
  width: 50%; /* Make the input field stretch to fill the form-group */
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  transition: all 0.2s ease-in-out; /* Smooth transition for hover/focus */
}

.container-fluid .form-group .form-control:focus {
  border-color: #007bff; /* Blue border on focus */
  box-shadow: 0px 2px 5px rgba(0, 123, 255, 0.5); /* Blue shadow on focus */
  outline: none; /* Remove the default outline */
}

.container-fluid .form-group .text-danger {
  color: #dc3545; /* Bootstrap danger red */
  font-size: 14px; /* Slightly smaller font size */
  margin-top: 5px; /* Add space above the error messages */
}

.container-fluid .form-group {
  margin-bottom: 20px; /* Space between form groups */
}
