/* ===============================
   Auth / Login Page Styles
   =============================== */

/* --- Body / Page Background --- */
body {
  font-family: "Vazirmatn", sans-serif;
  background: linear-gradient(135deg, #ffd86f, #ff9fb2);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

/* --- House Button / Icon --- */
.house {
  color: white;
  position: absolute;
  background-color: #74c69d;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 10px;
  top: 10px;
  right: 20px;
  animation: pop 0.5s ease forwards;
  transition: border-radius 0.3s ease-in;
}

.house:hover {
  border-radius: 30px 0 0 30px;
}

/* --- Login Container --- */
.login-container {
  background: #fff;
  padding: 30px 35px;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
  width: 500px;
  animation: pop 0.5s ease forwards;
}

/* --- Animations --- */
@keyframes pop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- Heading --- */
.login-container h1 {
  position: relative;
  font-size: 26px;
  color: #74c69d;
  margin-bottom: 20px;
  transition: color 0.3s ease-in;
}

.login-container h1::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 40px;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #ff4d4d, #dd0010);
  transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: 4px;
}

.login-container h1:hover {
  color: #e31418;
}

.login-container h1:hover::after {
  width: 100%;
}

/* --- Input Fields --- */
.login-container input {
  width: 100%;
  padding: 12px;
  border: 2px solid #ffd86f;
  border-radius: 12px;
  margin-bottom: 15px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.login-container input:focus {
  border-color: #ff6f61;
  transform: scale(1.03);
}

/* --- Buttons --- */
.login-container button {
  width: 100%;
  padding: 12px;
  background: #ff6f61;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.login-container button:hover {
  background: #ff3c4a;
  transform: scale(1.05);
}

/* --- Signup Link --- */
.login-signup {
  position: relative;
  color: #6db490;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease-in;
}

.login-signup::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 25px;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #ff4d4d, #dd0010);
  transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: 4px;
}

.login-signup:hover {
  color: #e31418;
}

.login-signup:hover::after {
  width: 100%;
}

/* --- Paragraph inside login --- */
.login-container p {
  margin-top: 10px;
  font-size: 14px;
}

/* --- Ballot Check Icon --- */
#ballot-check {
  color: #74c69d;
  padding-right: 3px;
  transition: color 0.3s ease-in;
}

.login-signup:hover #ballot-check {
  color: #e31418;
}

/* --- Error Message --- */
.error-msg {
  color: red;
  font-size: 13px;
  margin-top: 8px;
}

/* --- Password Toggle --- */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

#togglePassword {
  position: absolute;
  left: 10px;
  bottom: 23px;
  height: 34px;
  width: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.04);
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color 0.12s ease, transform 0.12s ease;
  color: #333;
}

#togglePassword:hover {
  background-color: rgba(0, 0, 0, 0.07);
  transform: scale(1.05);
}

#togglePassword[aria-pressed="true"] {
  color: #0b84ff;
  background: rgba(11, 132, 255, 0.08);
}

/* ===============================
      RESPONSIVE (MOBILE)
   =============================== */

@media (max-width: 768px) {
  body {
    padding: 20px;
    background: linear-gradient(135deg, #ffd86f, #ff9fb2);
  }

  .login-container {
    width: 100%;
    padding: 25px 20px;
    border-radius: 20px;
  }

  .login-container h1 {
    font-size: 22px;
  }

  .login-container input {
    font-size: 13px;
    padding: 11px;
  }

  .login-container button {
    font-size: 15px;
    padding: 11px;
  }

  .password-wrapper {
    gap: 4px;
  }

  #togglePassword {
    bottom: 20px;
    left: 8px;
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .house {
    top: 12px;
    right: 15px;
    padding: 8px;
    border-radius: 8px;
  }

  #ballot-check {
    font-size: 14px;
  }

  .login-container p {
    font-size: 13px;
  }

  .login-signup {
    font-size: 14px;
  }
}
