* {
  font-family: "DM Sans", sans-serif;
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}
:root {
  --background-color: #2b3674;
  --secondary-color: #ffffff;
  --border: #949db9;
  --alert: #ff1818;
}
.logsection {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  height: 100vh;
}
.Loginimg {
  background: var(--background-color);
  padding: 30px;
}
.Loginlog {
  background: var(--secondary-color);
}
.Medical {
  font-family: "DM Sans";
  font-size: 24px;
  font-weight: bold;
  text-align: left;
  color: var(--secondary-color);
}
.heart {
  padding: 10px 5px 10px 10px;
  color: var(--secondary-color);
}
.brand {
  display: flex;
  align-items: center;
}
.head {
  font-family: "DM Sans";
  font-size: 32px;
  font-weight: bold;
  text-align: left;
  color: var(--secondary-color);
  margin-top: 80px;
  margin-bottom: 30px;
}
.img1 {
  height: 50%;
  width: 50%;
}
.content {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.subcontent {
  font-family: "DM Sans";
  font-size: 25px;
  font-weight: bold;
  text-align: center;
  color: var(--background-color);
  margin-bottom: 20px;
}
.Login {
  background: var(--secondary-color);
  padding-top: 160px;
}
.form-label {
  margin: 30px 0px 5px 0px;
  font-family: "DM Sans";
  font-size: 15px;
  font-weight: bold;
  text-align: left;
  color: var(--background-color);
}

.important::after {
  content: "*";
  color: var(--alert);
  padding-left: 2px;
}
.form-control:focus {
  box-shadow: none;
  outline: none;
  border: 2px solid var(--background-color);
}
.textbox-1 input {
  width: 400px;
  height: 50px;
  flex-grow: 0;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 25px;
  border-radius: 15px;
  box-shadow: 0 4px 4px 0 rgba(190, 189, 189, 0.25);
  border: solid 1px var(--border);
  font-family: "DM Sans";
  color: var(--background-color);
  font-size: 17px;
  font-weight: 600;
}
.textbox-1 ::placeholder {
  color: var(--border);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.28px;
}
.mb-0 {
  font-family: "DM Sans";
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  color: var(--background-color);
  text-decoration: none;
}
.mb {
  display: flex;
  align-items: center;
  margin-top: 10px;
}
.iconi {
  margin-top: 55px;
  padding: 20px;
}
.btn {
  font-family: "DM Sans";
  width: 130px;
  height: 40px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 20px 149px 0;
  font-weight: bold;
  border-radius: 17px;
  border: solid 2px var(--background-color);
  background: transparent;
  color: var(--background-color);
  transition: background-color 0.3s, color 0.3s;
}

.btn:hover {
  background-color: var(--background-color);
  color: var(--secondary-color);
  border: none;
}

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

.input-with-icon {
  position: relative;
}

.input-with-icon .fa-eye-slash {
  position: absolute;
  right: 25px;
  top: 35%;
  transform: translateY(-10%);
  cursor: pointer;
}
.input-with-icon .fa-eye {
    position: absolute;
    right: 25px;
    top: 35%;
    transform: translateY(-10%);
    cursor: pointer;
  }
.fill {
  background: var(--background-color);
  color: var(--secondary-color);
}

.top-right-icon {
  position: absolute;
  top: 35px;
  right: 35px;
  font-size: 24px;
  color: var(--background-color);
  cursor: pointer;
  display: block;
  width: 24px;
  height: 24px;
}

.toggle-languages {
  display: none;
}

.language-options {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--secondary-color);
  border: 1px solid #ccc;
  border-radius: 13px;
  padding: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: none;
}

.language-selector {
  display: none;
}

.language-option {
  display: block;
  padding: 2px 10px;
  cursor: pointer;
  font-size: 15px;
}

.language-option:hover {
  background-color: #f0f0f0;
  border-radius: 8px;
}

.toggle-languages:checked ~ .language-options {
  display: block;
}

.language-selector:checked + label {
  font-weight: bold;
}

#en:checked ~ .language-options #ar,
#ar:checked ~ .language-options #en {
  display: none;
}
.hidden {
    display: none;
}

.forgotlog {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 25px;
}

.alert-success span {
  color: var(--secondary-color);
}

.alert-success {
  background-color: rgb(121, 199, 101);
  position: fixed;
  border: none;
  top: 8%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  padding: 35px;
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 15px;
}

.alert-success.show {
  opacity: 1;
}


@media (max-width: 991.98px) {
  .logsection {
    grid-template-columns: 1fr;
    height: auto;
  }
  .Loginimg {
    display: none;
  }
  .contents {
    box-shadow: 0px 13px 19px 30px rgba(0, 0, 0, 0.07);
    border-radius: 12px;
    margin-left: 100px;
    margin-right: 100px;
    padding: 15px;
  }
}

/* forgot css */

.secondbtn {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 12px;
}
.space {
  margin: 0;
}
.contents p {
  margin-bottom: 30px;
  font-family: "DM Sans";
  font-size: 16px;
  font-weight: 400;
  color: var(--background-color);
  cursor: pointer;
}

/* CSS Styles for Alert Message */

.alert-primary span {
  color: var(--secondary-color);
}

.alert-primary {
  background-color: #67c2f3;
  position: fixed;
  border: none;
  top: 8%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  padding: 35px;
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 15px;
}

.alert-primary.show {
  opacity: 1;
}
.alert-danger span {
  color: var(--secondary-color);
}

.alert-danger {
  background-color: rgb(223, 108, 108);
  position: fixed;
  border: none;
  top: 8%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  padding: 35px;
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 15px;
}

.alert-danger.show {
  opacity: 1;
}

.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none; /* Hidden by default */
}
.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
  animation: rotate 1s linear infinite;
}
.loader::before,
.loader::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  inset: 0px;
  border-radius: 50%;
  border: 5px solid #ffffff;
  animation: prixClipFix 2s linear infinite;
}
.loader::after {
  transform: rotate3d(90, 90, 0, 180deg);
  border-color: var(--background-color);
}
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes prixClipFix {
  0% {
    clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
  }
  50% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
  }
  75%,
  100% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%);
  }
}
