/* ===== LOGIN ICON ===== */
.login-wrapper {
  position: absolute;
  top: 20px;
  right: 25px;
  z-index: 999;
}

.login-icon {
  width: 25px;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.2s;
}

.login-icon:hover {
  transform: scale(1.1);
}

/* ===== LOGIN MODAL / DROPDOWN ===== */
.login-modal {
  position: absolute;
  top: 48px;
  right: 0;
  width: 260px;
  max-width: 90vw;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.25s ease-out;
}

.login-modal h4 {
  margin: 0 0 10px 0;
  font-size: 18px;
  text-align: center;
}

/* ===== FORM ELEMENTS ===== */
.login-modal label {
  font-size: 14px;
  font-weight: 600;
}

.login-modal input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: 0.2s;
}

.login-modal input:focus {
  border-color: #0072d4;
}

/* ===== PASSWORD FIELD ===== */
.password-box {
  position: relative;
  width: 100%;
}

.password-box input {
  padding-right: 36px !important; /* biar tetep rapi */
}

.toggle-pass {
  position: absolute;
  right: 10px;
  top: 8px;
  font-size: 18px;
  cursor: pointer;
  user-select: none;
  color: #444;
  transition: 0.2s;
}

/* Garis coret (awal: tidak tampil) */
.toggle-pass.hide::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: #444;
  top: 50%;
  left: 0;
  transform: rotate(45deg);
  pointer-events: none;
}



/* ===== BUTTON ===== */
.login-btn {
  background: #004d40;
  color: white;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: 0.2s;
}

.login-btn:hover {
  background: #0072d4;
}

/* ===== ANIMATION ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.logged-user {
  position: absolute;
  right: 50px;
  top: 5px;
  font-size: 14px;
  color: #333;
}

/* ===== RESPONSIVE SEMUA LAYAR ===== */
@media (max-width: 480px) {
  .login-wrapper {
    top: 15px;
    right: 15px;
  }

  .login-icon {
    width: 32px;
  }

  .login-modal {
    width: 80vw;
    right: 0;
    padding: 14px;
  }

  .login-btn {
    padding: 9px;
    font-size: 14px;
  }

  .toggle-pass {
    top: 9px;
  }
}

@media (max-width: 350px) {
  .login-modal {
    width: 70vw;
  }

  .login-icon {
    width: 30px;
  }
}
