body{
  width: 100%;
  height: 100vh;
  padding: 0;
  margin: 0;
  background-color: var(--mainColor);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;

  position: relative;
  z-index: 1;

  &::before{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url('../img/doctor\ background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: -1;
  }     
}

.loginLinear{
  background-color: var(--seColor);
  width: 400px;
  height: 700px;
  max-width: 90%;
  max-height: 90%;
  border-radius: 50px;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 20px 10px;
  overflow: hidden;
  position: relative;
  z-index: 1;

  h1{
    color: var(--mainColor);
    font-size: 26px;
    font-weight: 500;
    margin: 0;
    width: 125px;
    text-align: right;
  }
  h2{
    color: var(--mainColor);
    font-size: 18px;
    font-weight: 300;
    margin: 0;
    width: 125px;
    text-align: right;
  }


  &::before{
    content: "";
    position: absolute;
    width: 120%;
    height: 400px;
    bottom: -75px;
    left: -10%;
    background-color: var(--extraColor);
    border-radius: 50%;
    z-index: -1;
  }
}

@media (max-width: 1000px) {
  .loginLinear::before {
    height: 325px;
    bottom: -50px;
  }
}

#appLogo{
  width: 100px;
  height: 100px;
  border-radius: 25px;
  margin-top: 15px;
}


.loginForm {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  direction: rtl;
  text-align: right;
}

.md-input-group {
  position: relative;
  width: 90%;
  max-width: 320px;
  margin: 0 auto;
}

.md-input {
  width: 100%;
  border: none;
  border-bottom: 2px solid #ccc;
  background: transparent;
  font-size: 1.1rem;
  padding: 16px 8px 8px 8px;
  color: var(--mainColor, #222);
  outline: none;
  transition: border-color 0.3s;
  font-family: inherit;
  box-sizing: border-box;
}

.md-input:focus {
  border-bottom: 2px solid var(--mainColor, #41816D);
}

.md-label {
  position: absolute;
  right: 8px;
  top: 18px;
  color: #888;
  font-size: 1rem;
  pointer-events: none;
  background: transparent;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  font-family: inherit;
}

.md-input:focus ~ .md-label,
.md-input:not(:placeholder-shown) ~ .md-label {
  top: 2px;
  font-size: 0.85rem;
  color: var(--mainColor, #41816D);
  background: var(--seColor, #fff);
  padding: 0 4px;
}

.md-underline {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  height: 2px;
  background: var(--mainColor, #41816D);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 2;
}

.md-input:focus ~ .md-underline {
  transform: scaleX(1);
}

.loginForm button {
  width: 300px;
  max-width: 85%;
  padding: 10px 5px;
  border: 2.5px solid var(--extraColor);
  border-radius: 25px;
  background-color: var(--mainColor);
  color: var(--seColor);
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  margin-top: 15px;
  transition: all 0.4s ease-in-out;
}

.loginForm button:hover {
  width: 350px;
  background-color: var(--seColor);
  color: var(--mainColor);
}

/* Error Dialog */
.dialog-error {
  position: absolute;
  direction: rtl;
  bottom: 50px;
  right: 50%;
  transform: translateX(50%);
  background-color: var(--errorColor);
  color: var(--seColor);
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 16px 24px;
  font-size: 16px;
  z-index: 10;
  border: 1px solid var(--errorColor);
  animation: fadeInDialog 0.3s;
}

@keyframes fadeInDialog {
  from { opacity: 0; transform: translateY(-20px) translateX(50%); }
  to { opacity: 1; transform: translateY(0) translateX(50%); }
}