/* PASSWORD TOGGLE */

.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 5; /* 🔥 ensures clickable */
}

.toggle-password:hover {
  color: #65081f;
}

/* ERROR */

.error {
  color: #c0392b;
  font-size: 12px;
  display: block;
  margin-top: -10px;
  margin-bottom: 10px;
}

/* INVALID INPUT */

.auth-input.invalid {
  border-color: #c0392b;
}

/* AUTH PAGE */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #fafafa;
}

.auth-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* LEFT */

.auth-left {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  background: white;
}

.auth-box {
  width: 100%;
  max-width: 420px;
}

.auth-title {
  font-size: 36px;
  line-height: 1.04;
  margin-bottom: 12px;
  color: #1d2430;
  font-weight: 700;
}

.auth-sub {
  font-size: 18px;
  line-height: 1.55;
  color: #97a1ad;
  margin-bottom: 32px;
  max-width: 500px;
}

/* INPUT */

.auth-input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: 0.2s;
}

.auth-input:focus {
  border-color: #65081f;
  outline: none;
}

/* CHECKBOX */

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #222222;
  margin-bottom: 20px;
}

.auth-check input {
  margin-top: 4px;
}

.auth-check a {
  color: #65081f;
  text-decoration: none;
}

.auth-check a:hover {
  text-decoration: underline;
}

/* BUTTON */

.auth-btn {
  width: 100%;
  padding: 12px;
  background: #65081f;
  color: white;
  border: none;
  border-radius: 4px;
  transition: 0.25s;
}

.auth-btn:hover {
  background: #4d0618;
  transform: translateY(-1px);
}

/* FOOTER TEXT */

.auth-footer {
  margin-top: 15px;
  font-size: 14px;
  color: #777;
}

.auth-footer a {
  color: #65081f;
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* RIGHT SIDE */

.auth-right {
  width: 50%;
  background: linear-gradient(135deg, #65081f, #a32c3b);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auth-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

/* RESPONSIVE */

@media (max-width: 992px) {
  .auth-container {
    flex-direction: column;
  }

  .auth-left,
  .auth-right {
    width: 100%;
  }

  .auth-right {
    height: 250px;
  }
}

.password-wrapper .auth-input {
  padding-right: 45px; /* space for eye */
}

.password-wrapper {
  position: relative;
}

.password-wrapper .toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 10; /* stronger */
  pointer-events: auto;
}

.password-wrapper .auth-input {
  position: relative;
  z-index: 1;
}

footer {
    margin-top: 0px;
}